Skip to content

alphonse92/wolibot

Repository files navigation

wolibot

Bot for slack - woli - hackatonia 2021

Dependencies

to create reports wolibot uses Anychart and require all their dependencies:

  1. ImageMagic
  2. librsvg

to install these dependencies you can execute the next commands based in your system operative:

Linux

apt-get install imagemagick librsvg2-dev librsvg2-bin

Mac OS

brew install imagemagick librsvg

Windows

Installation:

  1. npm install
  2. copy .env.example and rename it to .env
  3. configure the envars:
    1. CHANNELS: a list of slack channels where the bot is already joined separed by a comma
    2. BOT_TOKEN: the bot access token (I already sended it to you)
    3. SAY_HELLO_AT_START: if "true" then sends a friendly warning to channels where the bot is already joined.
    4. DEBUG: not implemented yet but should print stuff if it is true

Running

  1. npm start

The bot will listen on channels where the bot is already joined.

Joining bot to channels:

  1. go to slack channel
  2. tag the bot in the channel and it will join to it

Commands

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.

params
  1. --result this parameter allows filter depending on the result options available are (toxic, healthy) //woli alerts list --result=toxic
  2. --complete return the raw data (evaluation of each message)

preview: graph

//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

params
  1. --byUser this parameter gets you the graph of the users that ended toxic messages preview: graph by user

About

Bot for slack - woli - hackatonia 2021

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published