- 命令行运行微信聊天
- 基于Wechaty开源项目开发。
# configure
1. node version 18+
2. pnpm version 7.x
- ESlint:Code verification
- TypeScript:JavaScript With Syntax For Types
- PNPM:Faster, disk space saving package management tool
- Express:Fast, unopinionated, minimalist web framework for Node.js
- Wechaty:RPA SDK for Chatot Makers
npm install -g pnpm
apt install libxkbcommon-dev libgbm-dev -y
# install dependencies
pnpm i
# start the service
pnpm dev
#
# 发送好友消息
# 根据好友昵称发送消息
curl 'http://127.0.0.1:3000/0?name=好友名称&content=测试消息'
# 根据好友备注发送消息,需要设置好友备注名
curl 'http://127.0.0.1:3000/0?alias=好友备注&content=测试消息'
# 发送群消息
curl 'http http://127.0.0.1:3000/1?name=群名称&content=测试消息'
群消息发送
好友消息发送