Skip to content

JacobSanford/python-rtmbot-hodor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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.

Docker

A docker image has been created to deploy this service quickly.

QuickStart

  1. Download the python-rtmbot code

     git clone git@github.com:slackhq/python-rtmbot.git
     cd python-rtmbot
    
  2. Install dependencies (virtualenv is recommended.)

     pip install -r requirements.txt
    
  3. Configure rtmbot (https://api.slack.com/bot-users)

     cp doc/example-config/rtmbot.conf .
     vi rtmbot.conf
       SLACK_TOKEN: "xoxb-11111111111-222222222222222"
    
  4. Download and enable this plugin

     git submodule add -f git://github.com/JacobSanford/python-rtmbot-hodor.git plugins/hodor
    
  5. Start

     ./rtmbot.py
    

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.

License

Sources

About

Slack Hodor Bot : Does Hodoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages