Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.45 KB

README.md

File metadata and controls

68 lines (49 loc) · 2.45 KB

turing-chat

python python3.5 AllahBless apm 中文版

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).

Quick Start

  1. Download/Clone all the files
git clone [email protected]:CosmoGao/turing-chat.git
  1. Install Python and dependent packages:

    • requests

      pip install requests
    • ItChat

      pip install itchat
  2. Register the Tuling123 API and create the "api.inf" file at the same path, the writing the API at the first line

  3. execute wechat.py

Responsed Message Type

Private Message

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 -

Group chat

Message Type @me Responsed Way Output
Text(emoji) yes tuling123 response message details
Text(emoji) no × - message details
Picture - send img storage path
Others - × - -

TODO

  • Enhance compatibility
  • Improve and add new message types

Experimental Feature

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.

Issues and Suggestions

Any issues and suggestions may be discussed.

License

MIT