npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wechatbot-webhook

v2.8.0

Published

给微信里加个 webhook 机器人,支持docker部署

Downloads

43

Readme

GitHub Workflow Status (with event) npm dowloads Docker Pulls GitHub release (with filter)

🚢 Docker 镜像 | 🧑‍💻 Github🔍 FAQ

开箱即用的微信webhook机器人,通过 http 接口调用即可实现微信消息的发送和接收

✨ Features

  • 推送消息 (发送文字 / 图片 / 文件)

    • 💬 支持消息单条 / 多条 / 群发
    • 🌃 消息 url 解析成文件发送
    • 📁 支持读文件发送
  • 接收消息(文字 / 图片 / 语音 / 视频 / 文件 / 好友申请 / 公众号推文链接)

    • 🚗 单 API 收发消息(依赖收消息API,被动回复无需公网IP)
    • 🪧 登入掉线异常事件通知
  • 其他功能

    • 🤖 支持 非掉线自动登录
    • ✈️ 支持 带鉴权 api 接口获取登陆二维码
    • 支持 n8n 低码平台丝滑接入(webhook 节点)
    • 🚢 支持 docker 部署,兼容 arm64amd64
    • ✍️ 支持 日志文件导出

1. 安装

npm i wechatbot-webhook -g

2. 运行 & 扫码

wxbot

参数

Options:
  -V, --version  output the version number
  -r, --reload   想重新扫码时加该参数,不加默认记住上次登录状态
  -e, --edit     打开 .wechat_bot_env 配置文件,可以填写上报消息API等
  -h, --help     display help for command

3. 复制推消息 api

从命令行中复制推消息api,例如 http://localhost:3001/webhook/msg/v2?token=[YOUR_PERSONAL_TOKEN]

4. 使用以下结构发消息

从命令行中复制推消息新开个终端试试以下 curl,to, token字段值换成你要值

curl --location 'http://localhost:3001/webhook/msg/v2?token=[YOUR_PERSONAL_TOKEN]' \
--header 'Content-Type: application/json' \
--data '{ "to": "测试昵称", data: { "content": "Hello World!" }}'

🛠️ API

API Reference

⏫ 更新日志

更新内容参见 CHANGELOG