Compare commits

...

2 commits

Author SHA1 Message Date
4d5076ff64 minor changes to readme 2020-03-31 09:52:57 -04:00
9f2c953383 Removed the uneeded "told ya" prints. 2020-03-31 09:52:37 -04:00
2 changed files with 1 additions and 3 deletions

View file

@ -55,7 +55,7 @@ In the next example a message will be sent every time the user `user` logs in to
> Added the next lines at the bottom of `~/.profile` file > Added the next lines at the bottom of `~/.profile` file
```shell ```shell
# Telme on login # Telme on login
telme -m "A new Login:\n\`\`\` user: $(whoami) | hostname: $(hostname) | remote ip $(who | cut -d'(' -f2 | cut -d')' -f1)\`\`\` Hope this is you!" telme -m "A new Login:\`\`\` user: $(whoami) | hostname: $(hostname) | remote ip $(who | cut -d'(' -f2 | cut -d')' -f1)\`\`\` Hope this is you\!"
``` ```
###### Task message ###### Task message

View file

@ -24,13 +24,11 @@ async function main() {
config = await Config.getConfig(parsed.mode_data.profileName); config = await Config.getConfig(parsed.mode_data.profileName);
options = parsed.mode_data as ISimpleMessageOptions; options = parsed.mode_data as ISimpleMessageOptions;
await Telme.sendMessage(config, options.message); await Telme.sendMessage(config, options.message);
console.log(`[${Config.APP_NAME}]: Told Ya!`);
break; break;
case ERunMode.TASK_MESSAGE: case ERunMode.TASK_MESSAGE:
config = await Config.getConfig(parsed.mode_data.profileName); config = await Config.getConfig(parsed.mode_data.profileName);
options = parsed.mode_data as ITaskOptions; options = parsed.mode_data as ITaskOptions;
await Telme.runTask(config, options); await Telme.runTask(config, options);
console.log(`[${Config.APP_NAME}]: Told Ya!`);
break; break;
} }