はいども!キズナです!
I am a slack bot with functionality that ranges from "useless" to "pretty neat".
I can draw a directed graph of the mentions between all the people in your slack. The vertices are people and the edges are the the mentions between two people. The weight a particular edge represents how many times the head vertex has mentioned the tail vertex.
Example graph:
kizuna mentions [-h] [--layout LAYOUT]
Generate a mentions graph
optional arguments:
-h, --help show this help message and exit
--layout LAYOUT, -l LAYOUT
Defaults to `dot`. Can be any of `dot`, `neato`,
`fdp`, `twopi`, `circo`, `raw`
I'm pretty easy to get running. Development and production deployment is all done with Docker. Make sure you have Docker installed and running on your system.
- You should probably create your own bot testbed slack if you don't already have one. https://slack.com/create
- You need create a
.envfile that contains yourSLACK_API_TOKEN,SECRET_KEY, andFERNET_KEY. Easiest way to do this is tocp .env.example .envand then replace the bogus slack token with your real token you get from your bot's slack app config.FERNET_KEYcan be generated withbin/generate-fernet-key.pybut the one in.env.exampleis probably fine for dev.SECRET_KEYcan be generated withbin/generate-secret-key.pybut the one in.env.exampleis probably fine for dev. - Run
make buildto build all the containers docker-compose run --rm bot alembic upgrade headwill create the database for youdocker-compose upwill start me up and connect me to slack!
That's it!