Wechat Bot Save

带二次开发接口的PC微信聊天机器人

Project README

已经删除funtool.exe

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

参考项目

Open Source Agenda is not affiliated with "Wechat Bot" Project. README Source: cixingguangming55555/wechat-bot
Stars
2,297
Open Issues
79
Last Commit
1 month ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating