Wechat bot for sending daily messages to WeChat contacts
Top 20.2% on sourcepulse
This project provides a Node.js-based WeChat bot designed for personal use, primarily to send daily messages like weather updates and romantic quotes to a partner. It also includes features like an AI chatbot for conversation and a garbage classification lookup. The project targets users new to Node.js development, offering a simplified experience compared to more complex WeChat automation tools.
How It Works
The bot leverages the Wechaty framework, which allows Node.js applications to interact with WeChat. It utilizes Puppeteer for browser automation to manage WeChat web client interactions. For AI chat, it integrates with third-party APIs like TianXing and Turing, requiring users to obtain their own API keys. The core functionality revolves around scheduled tasks for sending messages and event-driven responses for chatbot interactions.
Quick Start & Requirements
docker pull aibotk/wechat-bot
config/index.js
with personal details and API keys.docker run -e TZ="Asia/Shanghai" --name=chatBot --volume="$(pwd)/config/":/bot/config aibotk/wechat-bot
(foreground) or add -d
for background.Highlighted Details
?垃圾名称
).Maintenance & Community
The project has seen recent updates, including switching to wechat4u
puppet (Jan 2023) and upgrading Wechaty to v1.x (July 2022). Docker support was added in May 2021. A technical exchange group is available via WeChat.
Licensing & Compatibility
The project is open-source, but the README notes that using web-based WeChat access may carry a risk of account login restrictions. It explicitly states that payment-related features (red packets, transfers) are not supported.
Limitations & Caveats
The project is intended for personal interest and technical exchange; users are warned about potential WeChat account restrictions for web login. The effectiveness of free AI chatbot APIs is noted as limited. The project is not responsible for any account bans resulting from usage.
2 years ago
Inactive