这是希瑟德计划。
heatherrd的Python项目详细描述
一个简单的python微服务,它将rtm转换为一个同步http接口。
$ pip install heatherrd $ heatherrd --listen=tcp:8001 --url=http://example.com/callback-url/
$ curl --user <bot-user-id>:<bot-access-token> http://localhost:8001/connect
我将维护bot的rtm连接并中继传入的rtm消息 作为提供的url的json。
url可以将rtm响应的列表作为json进行回送 通过rtm连接作为回复。