Awesome Open Source
Awesome Open Source

ask_xiaobing

WeChat bot powered by MS XiaoBing (小冰) via itchat

一个利用itchat接口制作的微信自动回复机器人

快速入门(非开发者):

  1. 微信关注小冰公众号
  2. 下载运行文件,打开并扫码:
  3. 小冰唤醒方式:在对话中输入下列任意 ["小冰", "小冰小冰", "小冰呢", "小冰呢?", "小冰回来", "小冰出来"]
  4. 小冰休眠方式:在对话中输入下列任意 ["小冰住嘴", "小冰闭嘴", "滚", "你滚", "你闭嘴", "下去吧", "小冰下去", "小冰退下"]

快速入门(开发者):

  1. 微信关注小冰公众号
  2. git clone https://github.com/codemonkeycxy/ask_xiaobing.git
  3. brew install python
  4. pip install virtualenv
  5. cd ask_xiaobing
  6. virtualenv env
  7. . ./env/bin/activate
  8. pip install itchat
  9. python ask_xiaobing.py

人机对话:

webp net-resizeimage 2

两只小冰左右互搏:

webp net-resizeimage 3

综合借鉴了下面这些资源:

  1. https://github.com/Lafree317/PythonChat/blob/master/chat.py (在此基础上增加了message queue,解决了多人同时和小冰聊天时串号的问题)
  2. https://zhuanlan.zhihu.com/p/30899907

已知问题:

  1. 本小冰目前还不能回传语音 (itchat api目前还不能支持)
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (806,114
Wechat (4,252
Wechat Bot (45
Itchat (36