New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wxbotjs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wxbotjs

nodejs implementation for wechat bot

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

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

  • Reload bot while bot is running
  • Send file
  • Send image

NOTE

Thanks to Weixinbot.

Keywords

bot

FAQs

Package last updated on 20 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts