Easily extendable node.js based slack bot.
- Create a simple class to add a new message handler.
- Simply call message.respond(message) to respond to messages.
- copy
_config.js
toconfig.js
and replace with your own info npm install
to install the dependenciesnpm run bot
to start it
npm install pm2 --global
pm2 install pm2-logrotate
pm2 set pm2-logrotate:max_size 10M
pm2 set pm2-logrotate:retain 7
pm2 set pm2-logrotate:interval_unit DD
pm2 startup
pm2 start bot.js --interpreter ./node_modules/.bin/babel-node
pm2 save
pm2 list
pm2 show server
pm2 monit
pm2 logs
pm2 logs --out --lines 20 --timestamp
pm2 stop server
pm2 restart server
pm2 delete server
- Bot users
- Slack Real Time Messaging API
- Message event