1.0.9 • Published 8 years ago

wxbotjs v1.0.9

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

wxbotjs - bot for wechat

nodejs implementation for wechat bot

wechat is a popular IM made by Tencent.

wxbotjs aims to provide a simple way to implement a weichat bot.

INSTALLATION

npm install wxbotjs

USAGE

example.js

display text messages and reply 'hello bot' to people who sends 'hello'

hot reload example

it's very useful to reload bot.js while developing bot.

note:

hot-reload depends on require-reload

Events

1. deviceId, {deviceId: ''}
2. uuid, {uuid: ''}
3. qrcode, {file: ''}
4. login
5. selfInfo, {selfInfo: {
	userName,
	nickName,
	displayName,
	remarkNamek,
	contactFlag,
	sex,
	signature,
	searchPinyins,
	headImgUrl
}}
6. contacts, {contacts: []}
7. msg, {from: userInfo, msg: msg}
8. logout, {reason: ''}

TODO

  1. Reload bot while bot is running
  2. Send file
  3. Send image

NOTE

Thanks to Weixinbot.

1.0.9

8 years ago

1.0.8

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago