Coder Social home page Coder Social logo

push-bot's Introduction

push-bot

推送精灵 - 微信推送机器人

关注机器人即可获得推送 API 地址

重要更新:切换至wechat4u,免token可运行 有bug

特点

  • 支持推送到个人微信和群
  • 代码少,单文件实现
  • 请求限制, 防止机器人账号被封,也避免消息*扰
  • 自动通过好友,自动生成接口地址

安装运行

  1. 安装依赖 npm install

  2. 配置参数,编辑 WECHATY_TOEKN cp .env.example .env

  3. 运行 node bot.js

发送到个人接口

该接口通过关注机器人获得(主动私聊发送 webhook 或者 推送地址 可获得)

GET /send/:token?msg=xxx

POST /send/:token

{
    "msg": {
        "type": "image",
        "url": "https://example.com/1.png" // 图片 url 仅支持 https
    }
}

发送到群接口

邀请机器人入群即可获得推送接口地址


GET /room/:token?msg=xxx

demo

更多

开发者微信 tianshe00

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.