Compare commits
No commits in common. "4d5076ff64772d9e12e2403509724cd04b9619c5" and "9368be0fda6d2bcefb93229891bab292cd87228d" have entirely different histories.
4d5076ff64
...
9368be0fda
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
```shell
|
||||
# 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
|
||||
|
|
|
@ -24,11 +24,13 @@ async function main() {
|
|||
config = await Config.getConfig(parsed.mode_data.profileName);
|
||||
options = parsed.mode_data as ISimpleMessageOptions;
|
||||
await Telme.sendMessage(config, options.message);
|
||||
console.log(`[${Config.APP_NAME}]: Told Ya!`);
|
||||
break;
|
||||
case ERunMode.TASK_MESSAGE:
|
||||
config = await Config.getConfig(parsed.mode_data.profileName);
|
||||
options = parsed.mode_data as ITaskOptions;
|
||||
await Telme.runTask(config, options);
|
||||
console.log(`[${Config.APP_NAME}]: Told Ya!`);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue