relay
Bot user that can send messages to different users
Installation
npm install bot-relay
usage
- Instance initialization
const relay = ;let token = '<slack bot token>'; //@TODO add url to get this tokenlet slackRelay = relay; slackRelay;
- Turn the bot on and off.
slackRelay; // return promise - resolve with relay instanceslackRelay; // return promise - resolve with success message
- Relay provide a "notify" method that takes in the user-name or channel-name
relayInstance;
- Send message to slack user
- given user name
- use your bot to send a message to the above user.
relayInstance;
- Post in a slack channel
- given a channel name
- use your bot to post a message to the above channel.
relayInstance;
- Send message to slack user
relayInstance;