Code Monkey home page Code Monkey logo

yawb's Introduction

YAWB(Yet Another WeChat Bot)

基于微信 Web 协议开发的【另一个微信机器人】。

功能

  • Login 登录
    • JS Login
    • QR Code
    • Login
  • Init 初始化
  • Contact 获取通讯录
  • Sync 同步消息
    • Sync Check
    • Sync Msg
  • Send Msg 发送消息
  • Interceptor 拦截器【插件】

使用

JDK 17 环境开箱即用(Out of the box),代码很简单,没有过度封装。

java -jar yawb-1.0.5.jar 

构建

mvn clean package -DskipTests

运行

java -jar target/yawb-1.0.5.jar 

运行后打开控制台输出的二维码链接,扫码登录即可。

Warning

不建议在其它终端上使用已登录本程序的账号发送消息。

Note

进行语音视频通信时,由于微信服务器没返回正确的 statusLine 会抛出异常。

拦截器【插件】

参考 org.eu.cciradih.yawb.interceptor.impl 下面的实现。

Caution

做了拦截器排序 BotInterceptorSort.value() 校验。

提示

可以通过断网的方式保活。

  1. 运行程序后登录机器人
  2. 手机进入【我】-【设置】-【切换账号】
  3. 断网
  4. 轻触头像以切换账号
  5. 耐心等待【登录中】变为【轻触重试】
  6. 轻触头像以切换账号

yawb's People

Contributors

cciradih avatar

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.