Dead simple bot framework.
Project description
Dead simple bot framework which is inspired by Ruby’s ruboty.
Why reinvent the wheel
I Love Python and I’m not good at Node.js(hubot), Ruby(Ruboty).
Err is pluggable but it’s too complex for me.
brutal is also pluggable but I don’t wont to write config file.
So I reinvent the wheel.
Architecture
Message flow.
+--[handler a]--+
| |
[chat service]-->[adapter]--+--[handler b]--+--[adapter]-->[chat service]
| |
+--[handler c]--+
Adapter
Adapter is interface of chat services receive message and send message to chat service.
Robo includes two adapters.
shell
Slack
Handler
Handler provides various behaviors to your robot.
from robo.decorators import cmd
class Ping(object):
@cmd(regex=r'^ping', description='')
def pong(self, message, **kwargs):
return 'pong'
This handler matches message ping and return pong to chat service.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robo-0.4.6.tar.gz
(9.6 kB
view hashes)