Ai
1 Star 0 Fork 0

Stone/wechat-service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
minibot.py 601 Bytes
一键复制 编辑 原始数据 按行查看 历史
ChisBread 提交于 2022-06-03 21:43 +08:00 . Update: external function import
from wesdk import *
def hippopbot(bot, msg):
bot.send_msg('yo',msg['senderid'],msg['roomid'],msg['nickname'])
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python config.py <path of config.yaml> <>")
exit(1)
updates = {
"chat-rules":{
"admin":{
"nickname":sys.argv[2:]
}
}
}
bot = Bot()
combinebot = load_bots(sys.argv[1], updates)
if not combinebot:
print("config parse error.")
exit(1)
bot.register("recv_txt_msg",lambda msg: combinebot(bot, msg))
bot.run()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/donlis/wechat-service.git
git@gitee.com:donlis/wechat-service.git
donlis
wechat-service
wechat-service
master

搜索帮助