It is the bot recieved slack message and archive messages
It can deploy easily on Heroku
#Settings
npm install supervisor -g
NOTE: Due to some disconnection problem, will it call rtm_close
the system will exit. Here uses supervisor to keep it online.
DATABASE_URL
for PostgreSQL, TOKEN
for Bot, url
for website host and port
Create table slack_log( id SERIAL PRIMARY KEY, user_id text, channel_id text, text text, timestamp timestamp default now());
#Run
DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxx PORT=8000 url=www.helloworld.com:8000 supervisor index.js
DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxx PORT=8000 node web.js
DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxxurl=www.helloworld.com:8000 supervisor recorder.js
MIT Licence