美文网首页
2018-12-30微信自动回复机器人

2018-12-30微信自动回复机器人

作者: 化石0305 | 来源:发表于2018-12-30 00:10 被阅读0次
from wxpy import *
#新建机器人,扫码登陆
bot =Bot()
#图灵接口,初始化机器人
tuling = Tuling(api_key="82edbb0725xxxxxxbc70c831e40c8e08")  #自己上图灵官网申请api_key
#自动回复,处理文字消息
@bot.register()  #装饰器
def auto_reply_all(msg):
    tuling.do_reply(msg)
#开始运行
bot.join()

相关文章

网友评论

      本文标题:2018-12-30微信自动回复机器人

      本文链接:https://www.haomeiwen.com/subject/vaumlqtx.html