Giter Site home page Giter Site logo

wechat-bot's Introduction

Wechat-bot 馈人玫瑰之手,历久犹有余香

GitHub license

微信版本:3.9.2.23

新坑QQ群: 712370539

如何使用

服务器端

第一步 启动PC微信并登陆完成,微信的版本必须是:3.9.2.23

第二步 启动非注入版,funtool.exe

第三步 点启动即可

客户端

本质就是构造一个json,当然,http和websocket的json构造,还有一些区别,具体请去看  这两个文件:
websocket 客户端  :client-3.2.1.121.js 
http  客户端示例:http-3.2.1.121.js 

发送文本消息示例--websocket

function send_txt_msg()
{
  const j={
    id:getid(),
    type:TXT_MSG,
    wxid:'23023281066@chatroom',//roomid或wxid,必填
    roomid:'null',//此处为空
    content:'hello word',
    nickname:"null",//此处为空
    ext:'null'//此处为空
  };
  const s = JSON.stringify(j);
  return s;
}

发送文本消息示例--http

async function send_txt_msg()
{
  const jpara={
    id:getid(),
    type:TXT_MSG,
    wxid:'23023281066@chatroom',//roomid或wxid,必填
    roomid:'null',//此处为空
    content:'hello word',
    nickname:"null",//此处为空
    ext:'null'//此处为空
  };
  const options =
  {
          url: url+'/api/sendtxtmsg',
          body:{
            para:jpara
        },
        json:true
  };
  let data = await rp(options);
  return data;
}

注意

  • 所有遇到的异常,都是因为json构造错误造成
  • 切记,json里面,是7个配对的key和value,差1个都不行

多开请去此大佬处

https://github.com/crazyn2?tab=repositories

参考项目

wechat-bot's People

Contributors

cixingguangming55555 avatar yunnibbd avatar meibao-real avatar crazyn2 avatar dependabot[bot] avatar joffreyn avatar tsingly avatar lith-angelo 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.