0.7.1 • Published 6 years ago
weixinbot v0.7.1
__ __ _ _ ___ _
/ / /\ \ \ ___ (_)__ __(_) _ __ / __\ ___ | |_
\ \/ \/ // _ \| |\ \/ /| || '_ \ /__\// / _ \ | __|
\ /\ /| __/| | > < | || | | |/ \/ \| (_) || |_
\/ \/ \___||_|/_/\_\|_||_| |_|\_____/ \___/ \__|
微信Nodejs版 by feit
Nodejs 封装网页版微信的接口,可编程控制微信消息
Install
npm install weixinbot --save
Usage
// Require Nodejs v8+
// index.js
const Weixinbot = require('weixinbot')
// will send qrcode to your email address
const bot = new Weixinbot({ receiver: 'your@email.com' })
// will emit when bot fetch a new qrcodeUrl
bot.on('qrcode', (qrcodeUrl) => {
console.log(qrcodeUrl)
})
bot.on('friend', (msg) => {
console.log(msg.Member.NickName + ': ' + msg.Content)
bot.sendText(msg.FromUserName, 'Got it')
})
bot.run()
Run
# We recommend show debug message under development
DEBUG=weixinbot node index.js
Feature
Remember previous login secret, when secret is valid, we can direct login without scan qrcode
API Doc
License
The MIT license.
0.7.1
6 years ago
0.6.1
8 years ago
0.6.0
8 years ago
0.5.0
8 years ago
0.4.9
8 years ago
0.4.8
8 years ago
0.4.7
8 years ago
0.4.6
8 years ago
0.4.5
8 years ago
0.4.4
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.1
8 years ago