English | 简体中文
Papersus Wxbot is a Windows-only WeChat bot with ChatGPT support.
Built on wcferry, this repo provides a WeChat bot framework and examples.
Disclaimer[mandatory reading]
The author of this tool makes no warranty, express or implied, as to the safety, completeness, reliability, validity, correctness, or suitability of this tool, and assumes no responsibility for any direct or indirect loss, liability, claim, demand, or action resulting from the use or misuse of this tool.
The author of this tool reserves the right to modify, update, delete or terminate this tool at any time without prior notice or obligation.
Users of the Tool shall comply with relevant laws and regulations, respect WeChat's copyright and privacy, and shall not infringe upon the legitimate rights and interests of WeChat or other third parties, or engage in any illegal or unethical behavior.
By downloading, installing, running or using the Tool, users of the Tool acknowledge that they have read and agree to this disclaimer. If you have any objection, please stop using the Tool immediately and delete all related files.
- Private chats only; group chats are not supported yet.
- Windows
- Python
>=3.10 - WeChat
3.9.2.23
git clone https://github.com/flowerfalling/wxbot.git
cd wxbotDownload WeChat version 3.9.2.23 here.
# Update pip
python -m pip install -U pip
# Install dependencies
pip install -r requirements.txtpython SusRobot.py
# To stop, press Ctrl+CUse the administrator account to enable permissions for users (see /enable below).
- The administrator (default: the WeChat account used to log in) sends
/enable username allin a private chat to enable all functions for the specified user. - Users send
@menuto view available commands.
Features
@菜单 # get the menu
@一言 # get a sentence
@历史上的今天 # get ten events from today in history
@微博/知乎热搜 # get the ten hot searches on Weibo/Zhihu
@星座运势 xxx # get today's horoscope picture
GPT commands:
/xxx # Talk to GPT
/gpt help # Get help
/gpt start # Enable GPT continuous conversation
/gpt end # Disable GPT continuous conversation
/gpt clear # Clear current session records
Gemini commands:
%xxx # Talk to Gemini
%gemini help # Get help
%gemini start # Enable Gemini continuous conversation
%gemini end # Disable Gemini continuous conversation
%gemini clear # Clear current session records
The following functions are currently available:
- menu
- gpt
- gemini
- hitokoto
- history
- hot_search
- constellation
Use any of the names above as the func parameter.
Administrator commands
/help # Get help
/state # View functions' status
/config # Reload configuration file
/disable|enable name1[,name2[...]] func1[,func2[...]]|all # Enable|Disable someone's permission for some|all functions
/start|stop func1[,func2[,func3[...]] # Start|Stop functions
/admin name # Transfer administrator's identity
/quit # Exit robot
Gemini is disabled by default. Add your token to plugins-info-gemini-token in config.yaml, restart, then enable it.
The GPT API key used in the demo is shared, so misuse can cause service interruptions.
See at Plugin Development Guide