mirror of
https://github.com/wechaty/getting-started.git
synced 2026-10-28 13:45:05 +08:00
d119988e77bd9bf05316980ee5267fecbce58f34
Connecting ChatBots.
Wechaty is a Bot Framework for Wechat Personal Account which can help you create a bot in 6 lines of javascript by easy to use API, with cross-platform support include Linux, Windows, Darwin(OSX/Mac) and Docker.
:octocat: https://github.com/wechaty/wechaty
🪲 https://github.com/wechaty/wechaty/issues
📖 https://github.com/wechaty/wechaty/wiki
🐳 https://hub.docker.com/r/zixia/wechaty
wechaty-getting-started
Wechaty is super easy to use, especially when you are using Docker.
This repo contains the code about the video tutorial.
Functions as follows:
- If you send the bot a 'hello', the bot will reply you 'hello how are you'
- If you send the bot a 'test', the bot will add you in the room 'test' (You should create a room called test before)
- If you send the bot a 'out', the bot will remove you from the room 'test'
The above 10 minutes video tutorial, which is a good start if you are new to Wechaty.
Learn more about wechaty: Wechaty
Run
docker
git clone https://github.com/lijiarui/wechaty-getting-started.git
docker run -ti --volume="$(pwd)":/bot --rm zixia/wechaty mybot.ts
npm
git clone https://github.com/lijiarui/wechaty-getting-started.git
npm install
node mybot.js
Languages
JavaScript
87.4%
Makefile
12.6%
