turing-chat is an open source WeChat robot based on littlecodersh's ItChat project, and access to the tuling123 service to provide natural language response (which only support Chinese).
- Download/Clone all the files
git clone [email protected]:CosmoGao/turing-chat.git
-
Install Python and dependent packages:
-
requests
pip install requests
-
ItChat
pip install itchat
-
-
Register the Tuling123 API and create the "api.inf" file at the same path, the writing the API at the first line
-
execute wechat.py
Message Type | Responsed | Way | Output |
---|---|---|---|
Text(emoji) | √ | tuling123 response | message details |
Map | o | tuling123 response | message details |
Card | √ | static text | message details |
Note | × | - | - |
Sharing | √ | tuling123 response | message details |
Picture | √ | download & send img | storage path |
Recoring | √ | download & send img | storage path |
Attachments | √ | download & static text | storage path |
Video | o | download & send img | storage path |
Friend | √ | add friend & welcome message | - |
Message Type | @me | Responsed | Way | Output |
---|---|---|---|---|
Text(emoji) | yes | √ | tuling123 response | message details |
Text(emoji) | no | × | - | message details |
Picture | - | √ | send img | storage path |
Others | - | × | - | - |
- Enhance compatibility
- Improve and add new message types
Try to recongnize friends' recording messages with Baidu's REST API. To enable the feature, ffmpeg and pydub package is required, and you have to set the value of enable_voice_rec to True in wechat.py file.
Any issues and suggestions may be discussed.