This repository is archived. I am no longer actively developing/supporting it.
If you are interested in discussing the contents of this repository feel free to contact me via the contact details provided in the "Author" section below.
I am working on a project which serves a similar purpose here.
A framework for building internal integration slack bots
The Slack Bot Framework is meant to be a minimalistic framework for writing internal integrations.
It uses a flask web application to accept connections from the slack application and events APIs, and maps a series of conditional rules onto celery tasks. JSON payloads delivered to the web frontend which satisfy one of the configured conditionals are then queued for processing via a celery worker task.
The project ships with a hello world implementation, which will cause the bot to reply "Hello World!" to every event it receives. Remove that task, or add more, by editing slackbotframework/blueprint/celery.py to include any required task logic, and editing slackbotframework/blueprint/rules.py to include a tuple in the rules_list with a conditional callback and a reference to the task.
In order to configure the bot, create an application within slack, include a bot user with the "mentions" scope, and then supply the required configuration variables to the application, which should be running at the URL you point the slack application at. After that, once the bot has been invited to the channel, it should start replying with "Hello World!"
See the full documentation at https://slack-bot-framework.readthedocs.io
Brian Balsamo [email protected]