Slack Hodor Integration
Plugin for python-rtmbot : listens for mentions of Hodor's name in slack channels and reply with a message.
Messages are pre-defined from a basic module import and classified by mood.
The 'mood' of reply is determined by comparing the content of the triggering message against a library of words and human interpreted intent scoring. After mood assignment, a message is chosen based on a 'item drop' type selection process that allows for weighting of responses.
A docker image has been created to deploy this service quickly.
Download the python-rtmbot code
git clone firstname.lastname@example.org:slackhq/python-rtmbot.git cd python-rtmbot
Install dependencies (virtualenv is recommended.)
pip install -r requirements.txt
Configure rtmbot (https://api.slack.com/bot-users)
cp doc/example-config/rtmbot.conf . vi rtmbot.conf SLACK_TOKEN: "xoxb-11111111111-222222222222222"
Download and enable this plugin
git submodule add -f git://github.com/JacobSanford/python-rtmbot-hodor.git plugins/hodor
Run As Daemon
If you plan on running the Slack Hodor Integration for long periods of time, you may consider using a process manager daemon such as supervisor to start and stop the rtmbot. A supervisor tutorial is available here.
- Slack Hodor Integration is licensed under the MIT License:
- Attribution is not required, but much appreciated:
Slack Hodor Integration by Jacob Sanford
- Mood is chosen based on a dataset 'AFINN' generated by Finn Arup Nielsen in 2009-2011 and used under the "Open Database License (ODbL) v1.0". http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010