Compare commits
2 commits
9368be0fda
...
4d5076ff64
Author | SHA1 | Date | |
---|---|---|---|
4d5076ff64 | |||
9f2c953383 |
2 changed files with 1 additions and 3 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:\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
|
||||
|
|
|
@ -24,13 +24,11 @@ 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