一个构建具有人类行为方式的机器人的框架
pengbot的Python项目详细描述
警告:彭博目前正在设计中
importpengbotfrompengbot.adaptersimportSlackRobot,Mention@pengbot.make_robot(SlackRobot)defmybot(bot):bot.context=bot.context(api_token=os.environ.get('SLACK_API_TOKEN',None))@vvbot.hears(Mention)deftalking_parrot(bot,message):yield frombot.says(':bird: %s'%message['text'],channel=message['channel'])if__name__=='__main__':mybot()
安装
$ pip install pengbot
文档
待办事项
- Fuzzy string match for commands
- Commands receive message context.
- Listen all messages to trigger commands.
- Adapters for Slack, XMPP, Twitter.
- Message stream filters.
- Message stream middlewares.
- Stream response messages.
- Natural Language Processing?. http://spacy.io
示例想法
- Auto linking for Jira Issues.
- Attach user mentions to issues as comments in Jira.
- Bots talking to bots.
- Voting and Polls.