# WeixinBot **Repository Path**: mirrors_stevemao/WeixinBot ## Basic Information - **Project Name**: WeixinBot - **Description**: Nodejs 封装网页版微信的接口,可编程控制微信消息 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` __ __ _ _ ___ _ / / /\ \ \ ___ (_)__ __(_) _ __ / __\ ___ | |_ \ \/ \/ // _ \| |\ \/ /| || '_ \ /__\// / _ \ | __| \ /\ /| __/| | > < | || | | |/ \/ \| (_) || |_ \/ \/ \___||_|/_/\_\|_||_| |_|\_____/ \___/ \__| 微信Nodejs版 by feit ``` ## Nodejs 封装网页版微信的接口,可编程控制微信消息 [![NPM version](https://badge.fury.io/js/weixinbot.png)](http://badge.fury.io/js/weixinbot) [![Dependencies Status](https://david-dm.org/feit/weixinbot.png)](https://david-dm.org/feit/weixinbot) ### Install ``` npm install weixinbot --save ``` ### Usage ```js // Require Nodejs v4+ // 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 ```bash # We recommend show debug message under development DEBUG=weixinbot node index.js ``` ### [API Doc](https://github.com/feit/weixinbot/tree/master/docs/API.md) ### License The MIT license.