Code Monkey home page Code Monkey logo

wxbot's Introduction

wxbot 微信机器人

  

  • 普通个人号 微信机器人/外挂 (不同于webot等公众号机器人)
  • 意义: 个人号可充当公众号使用 关系增强/门槛降低/更多行为/依旧自动化
  • qqbot/wqq等不同: 基于浏览器/用户行为自动化 更贴近用户/更可靠
  • 基于浏览器桌面平台electron 跨平台win/linux/mac
  • 基于微信网页版 https://wx.qq.com
  • 目前处于高度开发和观察阶段
  • 目前代码提供自动回复 可自行定制

请使用较新版本的electron>=v1.0 如果electron=v0.x 可以查看分支wxbot#electron-v0

$ cd wxbot
$ npm install
$ node .  # 运行 需扫二维码登录

功能实现

  • 自动回复
  • 识别并回复相同的文本/表情/emoji
  • 识别图片/语音/视频/小视频
  • 识别位置/名片/链接/附件
  • 识别转账/在线聊天/实时对讲
  • 发送图片
  • 下载自定义表情/名片/图片/语音/附件
  • 下载视频/小视频
  • 接受好友请求并回复
  • 感应系统消息 时间/邀请加群/红包等
  • loop错误超时解锁
  • 探索运行于无界面平台 atom/electron#228

无界面linux运行

Docker 相关

$ cd wxbot
$ docker build -t wxbot .
$ docker run -d -p 8233:8233 # 浏览器访问 docker 的 8233 端口,即可获取图片

如何正确地下载electron

参考 http://blog.fritx.me/?weekly/150904

wxbot's People

Contributors

fritx avatar huangruichang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wxbot's Issues

今天观测到的一个奇怪现象

有时如果网络环境不佳,微信web的程序载入不全,就会有一些问题,回复有时多个人同时发消息,就只回复第一个人的。
可能是那个新消息红点载入不全。
所以可能需要考虑找到另外一个判断新消息的方法。

运行成功,没有自动回复功能啊

npm run start 可以正常启动, 运行 electron . 则会报错,错误代码

`fs.js:634
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/electron-prebuilt/path.txt'
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Object. (/usr/local/lib/node_modules/electron-prebuilt/index.js:4:42)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)`

how could I send multiple messages within one event?

I just try your robot, it is great. However I tried to send multiple message when I received a message, I tried to do multiple
paste(reply)
$('.btn_send')[0].click()

but it doesn't work, do you know how could I do this?

您好,我安装不上

sh: 1: node: not found
npm WARN [email protected] No license field.
npm ERR! Linux 4.9.18-1-lts
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/changhaonan/Harvey-lab/Reminder/wxbot/npm-debug.log

centos 6 64 无法运行

按照文档安装,提示如下错误
[root@localhost wxbot]# node .

/root/wxbot/src/index.js:1
(function (exports, require, module, __filename, __dirname) { let { spawn } =
^
SyntaxError: Unexpected token {
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3

此项目已不支持新微信号接入,做机器人,营销系统,客服系统,监管系统的可以看下这个API :https://wkteam.gitbook.io/api/

17年前登陆过web网页版的微信可以登录并使用此框架,17年后的新注册微信号包括以前没有登陆过web网页版微信的号无法使用此框架,想搞着自己的机器人搞着玩的,可以去购买支持web登录微信号,如果是公司开发需要,那么唯一选择就是找正规企业合作API,(因为大家github搜索出来的基本都是网页版 wxpy wechaty itchat等等都是基于网页微信开发的)。所以以寻找API提供商,不过著名的提供商入门条件较高5W起步,QQ 微信提供的一堆二手骗子, 容易封号,无法维护, 赚一波钱就跑(微信一升级,API就废了,但是价格便宜 和割韭菜一样),所以推荐大家 寻找:有官网、API、系统、有能力提供协议升级稳定的企业(二手骗子一般没有)

养成好习惯

  1. package.json里的dependency加上。
  2. 代码未动测试先行。
  3. 严格模式。

建议增加wiki安装及使用说明

请原谅不是所有的人都精通 nodejs, 网络上各种文档也是七七八八的, 各有各的说法. 希望作者有空能稍微介绍一下如何安装及使用, 这样才能更方便的让更多人来测试和使用.

为了安装依赖包, 已经连续花了2天时间了, 也没有让这个能正常运行起来. 没有文档, 使用起来实在太痛苦了.

运行原生场景下的微信

怎么运行安卓或者iOS环境的下微信。
因为网页版微信有一些消息收不到,如红包, 群邀请

协议说明文档

如果我是一个不懂js 的程序员,但熟悉socket 通信协议,能否有一份文档,看了后我能写出一个Java版本的。

多人回复导致回复错乱的可能?

先谢为敬.

我想用这个做消息通知系统(内部): 短信的通知链接不能微信直接打开, 微信的可以.
看了源码发现, 是检测页面编号的.

但要主动给某个微信发送消息是否可以 ? 最好有微信号, 基于昵称勉强也行

启动错误

错误信息如下

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'browser-window'
    at Module._resolveFilename (module.js:438:15)
    at Function.Module._resolveFilename (/usr/local/lib/node_modules/electron-prebuilt/dist/resources/electron.asar/common/reset-search-paths.js:47:12)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/wxbot/index.js:1:100)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)

是我的electron的安装问题?BTW:electron的版本是1.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.