当在GroupMe聊天中提到时用自定义消息响应的机器人
GroupmeChatbot的Python项目详细描述
#集体机械机器人[![GroupMechatbot版本](https://img.shields.io/pypi/v/GroupmeChatbot.svg)](https://pypi.org/project/GroupmeChatbot)
当在GroupMe聊天中提到时,一个用自定义消息响应的机器人
###作者
daniel gisolfi-所有当前工作-[dgisolfi](https://github.com/dgisolfi)
##群邑机器人?
A GroupMe bot can be created [here](https://dev.groupme.com/bots) and using the Groupme API can send messages to its assigned group. This particular bot uses a callback URL to be notified of new messages. Once notified the message will be parsed and a response will be created if the bot was specifically mentioned by name example: @marty how are you?.
##用法
在向groupme注册bot后,必须以环境变量的形式指定以下要求:
bot_name-是群聊天成员可以引用的bot的名称。
示例:bot_name=marty
bot_id-按groupme分配的bot id。
示例:bot_id=A6A7A7A7A7A7A7A7A7A7
group\u id-机器人所在的groupme聊天的id
示例:组ID=0987890987
api_令牌-授权groupme帐户的api令牌
示例:api_token=983u4ritgo0v98ujkorf
设置环境变量后,运行flask服务器,python-m groupmechatbot
##定制/添加
欢迎添加功能/建议,对于可能需要为特定用例添加的任何特定功能,可以简单地解析传入消息,在server.py文件中查找指定输入,并在bot类中添加方法以执行所需的功能。