阿尔弗雷多是一个天生的机器人,所以为你服务。
alfredo的Python项目详细描述
阿尔弗雷多-天生为人服务!
*****************
这里是一个典型的会话:::
you:inv some text
alfredo:called inv some text->;txet emos
https://github.com/daltonmatos/plugnplay>;)。只需创建一个新类:
命令):
返回'mycommand'==命令
def run(self,user,*args)
处理一些逻辑
返回结果
如果我们将此消息发送给alfredo:
mycommand p1 p2 p3
此方法必须返回一个字符串,该字符串将被发送回原始用户。
或者从示例代码中尝试您自己的命令。
dependencies
********
*pluginplay-http s://github.com/daltonmatos/pluginplay
*xmpppy-http://xmpppy.sourceforge.net/
-http://www.crummy.com/software/beautifulsoup/
*请求-https://github.com/kennethreitz/requests
*simplejson-http://code.google.com/p/simplejson/
您甚至可以运行需求文件来启动环境::
daltonmatos@gmail.com
*****************
这里是一个典型的会话:::
you:inv some text
alfredo:called inv some text->;txet emos
https://github.com/daltonmatos/plugnplay>;)。只需创建一个新类:
命令):
返回'mycommand'==命令
def run(self,user,*args)
处理一些逻辑
返回结果
如果我们将此消息发送给alfredo:
mycommand p1 p2 p3
此方法必须返回一个字符串,该字符串将被发送回原始用户。
或者从示例代码中尝试您自己的命令。
dependencies
********
*pluginplay-http s://github.com/daltonmatos/pluginplay
*xmpppy-http://xmpppy.sourceforge.net/
-http://www.crummy.com/software/beautifulsoup/
*请求-https://github.com/kennethreitz/requests
*simplejson-http://code.google.com/p/simplejson/
您甚至可以运行需求文件来启动环境::
daltonmatos@gmail.com