1.0.3 • Published 5 years ago
foodstack-slack v1.0.3
Slack integration for foodstack
Initialize
npm install --save foodstack-slack
Require the package in your api
import slack from 'foodstack-slack';
Initialize by calling
slack.init(optional token)
If you pass a token, it will overwrite, otherwise it checks for an environment variable under SLACK_TOKEN
Env Variables
SLACK_TOKEN
: is the default token to use
SLACK_OFF
: turns off sending to slack and instead, console logs
Usage
Currently, the bot can post to the activity feed. You may do this by calling
slack.activity(message);