hubot-mail
A Hubot script for preparing messages that will be delivered upon the recipient's next activity (i.e. joins room, enters a message).
See src/mail.coffee
for full documentation.
Installation via NPM
-
Install the hubot-mail module as a Hubot dependency by running:
npm install --save hubot-mail
-
Enable the module by adding the hubot-mail entry to your external-scripts.json
file:
[
"hubot-mail"
]
-
Run your bot and see below for available config / commands
Configuration
Variable | Default | Description |
---|
HUBOT_MAIL_KEY | _mail | The unique key used for persistence (storing/retrieving mails from memory) |
Commands
Command | Description |
---|
hubot mail recipient message | Sends a message to recipient when found available |
hubot unmail [recipient] | Deletes all mail sent by you. Optionally, if recipient is specified, only mail sent to recipient by you will be deleted |