Compare commits

..

No commits in common. "4d5076ff64772d9e12e2403509724cd04b9619c5" and "9368be0fda6d2bcefb93229891bab292cd87228d" have entirely different histories.

2 changed files with 3 additions and 1 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:\`\`\` user: $(whoami) | hostname: $(hostname) | remote ip $(who | cut -d'(' -f2 | cut -d')' -f1)\`\`\` Hope this is you\!" telme -m "A new Login:\n\`\`\` user: $(whoami) | hostname: $(hostname) | remote ip $(who | cut -d'(' -f2 | cut -d')' -f1)\`\`\` Hope this is you!"
``` ```
###### Task message ###### Task message

View file

@ -24,11 +24,13 @@ 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;
} }