Bot for slack - woli - hackatonia 2021
to create reports wolibot uses Anychart and require all their dependencies:
to install these dependencies you can execute the next commands based in your system operative:
apt-get install imagemagick librsvg2-dev librsvg2-bin
brew install imagemagick librsvg
- npm install
- copy .env.example and rename it to .env
- configure the envars:
- CHANNELS: a list of slack channels where the bot is already joined separed by a comma
- BOT_TOKEN: the bot access token (I already sended it to you)
- SAY_HELLO_AT_START: if "true" then sends a friendly warning to channels where the bot is already joined.
- DEBUG: not implemented yet but should print stuff if it is true
- npm start
The bot will listen on channels where the bot is already joined.
- go to slack channel
- tag the bot in the channel and it will join to it
WOLI allows you to send some special messages to answer with more info
//woli alerts list
with this command, you can get the list of all messages tracked.
--result
this parameter allows filter depending on the result options available are (toxic
,healthy
)//woli alerts list --result=toxic
--complete
return the raw data (evaluation of each message)
//woli alerts report
this command returns a graph with the toxic messages tracked by each channel where WOLI was added in comparison to the normal messages