A python implementation reminiscent of Hubot. Work continuted on LolHubot
This repository has been archived on 2026-09-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2015-05-05 21:33:57 -05:00
bin mvp 2013-12-16 08:44:38 -06:00
src more code 2013-12-18 11:21:54 -06:00
.gitignore more code 2013-12-18 11:21:54 -06:00
hubot.md init 2013-12-15 03:36:32 -06:00
log_0.0.1.txt init 2013-12-15 03:36:32 -06:00
lolbot.sublime-project init 2013-12-15 03:36:32 -06:00
lolbot.sublime-workspace more code 2013-12-18 11:21:54 -06:00
readme.md Update readme.md 2015-05-05 21:33:57 -05:00

Note: After spending a lot of time working with node.js/coffeescript I decided to use Hubot and the project is called StatBot. I've opened this up just to show something I worked on back in the day.

Mad props to hubot. I spent a long time deciding between writing a bot in python and writing a league adapter for hubot. I decided to do it in python 1) my colleagues use python 2) I don't enjoy reading coffeescript and 3) to flex sharpen my python saw. Meteor has me writing a lot of js/cs these days.

This is my first foray into evented programming in python :D

The gist of how the bot works internally is Adapter receives a msg from a remote host Adapter uses the brain to get a user adapter uses the msg and the user to make a full Message object Adapter calls robot.receive(Message) Robot sends Message to listeners Listeners attempts to match Message, if so does callback(Response), where response is the message sent from the bot Response.send(*strings)

TODO:

short term: internal storage Persistant data store !register (web account) !subscribe (join a list or something) cli

long term: listen on group chats