2018-07-01 13:22:51 +08:00
2018-07-01 13:22:51 +08:00
2018-07-01 13:22:51 +08:00
2018-07-01 13:22:51 +08:00
2018-07-01 13:22:51 +08:00

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.

Join the chat at https://gitter.im/zixia/wechaty node Repo Size

: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:

  1. Show a QR Code for scan
  2. Login with your user information
  3. 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:

  1. NPM Mode
  2. 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
S
Description
A Starter Project Template for Wechaty works out-of-the-box
Readme Apache-2.0
4 MiB
Languages
JavaScript 87.4%
Makefile 12.6%