Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.08 KB

slack-log-bot

It is the bot recieved slack message and archive messages

It can deploy easily on Heroku

#Settings

Install supervisor

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.

Set ENV

DATABASE_URL for PostgreSQL, TOKEN for Bot, url for website host and port

Table Schema:

Create table slack_log( id SERIAL PRIMARY KEY, user_id  text, channel_id text, text  text,  timestamp timestamp default now());

#Run

For all,

DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxx PORT=8000 url=www.helloworld.com:8000 supervisor index.js

For separate start up

Website

DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxx PORT=8000  node web.js

Recorder

DATABASE_URL=postgres://xxxxxxx:[email protected]:5432/xxxxxxx TOKEN=ooxxxooxxxooxxxurl=www.helloworld.com:8000 supervisor recorder.js

LICENCE

MIT Licence