mirror of
https://github.com/wechaty/getting-started.git
synced 2026-10-27 12:28:01 +08:00
952e305f54ebbc20677088db81a90348351d2f9e
WECHATY-GETTING-STARTED
Wechaty is a Bot Framework for Wechat Personal Accounts which can help you create a bot in 6 lines of javascript by an easy to use API, with cross-platform support including 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 for the video tutorial.
Functions as follows:
- Show a QR Code for scan
- Login with your user information
- Log all the messages to console
Above is a 10 minute video tutorial, which is a good way to start if you are new to Wechaty.
Learn more about wechaty: Wechaty
RUN
You can run Wechaty in two modes:
- NPM Mode
- Docker Mode
1. NPM
git clone https://github.com/lijiarui/wechaty-getting-started.git
cd wechaty-getting-started
npm install
# Run Bot in JavaScript
node examples/simplest-bot/bot.js
# Run Bot in TypeScript
./node_modules/.bin/ts-node examples/simplest-bot/bot.ts
2. Docker
git clone https://github.com/lijiarui/wechaty-getting-started.git
cd wechaty-getting-started
# Run Bot in TypeScript
docker run -ti --volume="$(pwd)":/bot --rm zixia/wechaty examples/simplest-bot/bot.ts
# Run Bot in JavaScript
docker run -ti --volume="$(pwd)":/bot --rm zixia/wechaty examples/simplest-bot/bot.js
Languages
JavaScript
87.4%
Makefile
12.6%
