A Slack chatbot
- Clone the repo
pip install -r requirements.txt
- Host the web app (a sample wsgi.py is included. See here for more on deployment)
- Add the URL where you deployed the web app as an outgoing webhook. Here's what my configuration looks like:
- That's it! Try typing
!gif dubstep cat
into a chat room monitored by slask
You can host for free on Heroku. Sign up and follow the steps below to deploy the app.
heroku create
git push heroku master
heroku ps:scale web=1
heroku ps
heroku logs
Right now, !gif
, !image
, !youtube
and !wiki
are the only available commands.
It's super easy to add your own commands! Just create a python file in the plugins directory with an on_message
function that returns a string.