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
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.
You can use the !help
command to print out all available commands and a brief help message about them. !help <plugin>
will return just the help for a particular plugin.
These are the current default plugins:
- @fsalum
- @rodvodka