/slask

A simple slack chatbot written in python with flask

Primary LanguagePythonMIT LicenseMIT

Slask

A Slack chatbot

Installation

  1. Clone the repo
  2. pip install -r requirements.txt
  3. Host the web app (a sample wsgi.py is included. See here for more on deployment)
  4. Add the URL where you deployed the web app as an outgoing webhook. Here's what my configuration looks like: Here's what my configuration looks like
  5. That's it! Try typing !gif dubstep cat into a chat room monitored by slask

kitten mittens

Heroku

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

Commands

Right now, !gif, !image, !youtube, !weather, and !wiki are the some of the 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.

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.

calc


emoji


flip


gif


help


image


map


stock


stockphoto


weather


wiki


youtube


Contributors

  • @fsalum
  • @rodvodka