2018-07-01 13:05:16 +08:00
2018-07-01 13:05:16 +08:00
2018-07-01 13:05:16 +08:00
2017-12-26 14:22:15 +08:00
2018-05-11 14:48:38 +08:00

Connecting ChatBots.

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:

  • If you send 'hello' to the bot, the bot will reply 'hello how are you'
  • If you send 'test' to the bot, the bot will add you to the room 'test' (You should create a room called test before)
  • If you send 'out' to the bot, the bot will remove you from the room 'test'

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

docker

git clone https://github.com/lijiarui/wechaty-getting-started.git
cd wechaty-getting-started
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
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%