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 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-weibo-notify

v1.0.20

Published

微博帖子更新推送插件,用于获取指定微博用户的最新帖子推送到指定群聊

Downloads

1,545

Readme

koishi-plugin-weibo-notify

微博帖子更新推送插件:监听指定微博用户的新动态并推送到群聊,支持自动获取与定期刷新 Cookie(扫码登录),基于 Koishi 的浏览器服务。

特性

  • 监听单人或多人微博主页,匹配关键词/屏蔽词
  • 支持图文、视频、转发过滤
  • 集成扫码登录,首次扫码后自动保存并复用 Cookie
  • 可选周期性刷新 Cookie

安装

在你的 Koishi 项目中:

npm i koishi-plugin-weibo-notify
npm i koishi-plugin-puppeteer

在 Koishi 控制台启用:

  • 启用浏览器服务:koishi-plugin-puppeteer
  • 启用本插件:koishi-plugin-weibo-notify

配置

核心字段(在 Koishi 控制台或配置文件中设置):

  • basic: 基础设置
    • account:机器人账号(如 onebot 的账号 ID)
    • platform:适配器平台名(例如 onebot)
    • waitMinutes:轮询拉取最新微博间隔(分钟)
    • cookieRefreshIntervalHours:cookie自动刷新间隔(小时)
  • subs:数组,配置监听与发送目标
    • weiboUID:微博用户 UID
    • weiboUserName: 微博用户昵称
    • forward:是否监听转发
    • blockwords:屏蔽词,分号分隔
    • keywords:关键词,分号分隔
    • groupID:需要发送的群组
    • sendAll:是否 @全体成员
    • sub_sendText: 是否发送提取的微博文本
    • sub_showScreenshot: 是否发送微博截图
    • sub_sendMedia: 是否发送微博中的图片和视频
    • sub_sendVideoCover: 是否发送微博视频的封面图代替视频,开启后,视频会被替换为封面图
    • sub_splitMessages: 是否分条发送消息?开启后,文本、截图和每张图片/视频都会作为独立消息发送

示例(片段):

{
  "basic": {
    "account": "123456",
    "platform": "onebot",
    "waitMinutes": 3,
    "cookieRefreshIntervalHours": 72
  },
  "subs": [
    {
      "weiboUID": "1234567890",
      "weiboUserName": "XXX",
      "forward": false,
      "blockwords": "",
      "keywords": "",
      "groupID": "987654321",
      "sendAll": false
      "sub_sendText": true,
      "sub_showScreenshot": true
    }
  ]
}

使用说明

  • 首次启动且没有 Cookie 文件时,会通过浏览器服务打开微博登录页;如未自动显示二维码,将尝试点击“扫码/二维码”入口;扫码成功即保存 Cookie。
  • 后续启动直接复用保存的 Cookie,并按当前配置的刷新策略自动维护。

依赖

  • Koishi v4
  • koishi-plugin-puppeteer(浏览器服务)

感谢

weibo-monitor : 微博动态更新推送插件

weibo-post-monitor: 微博帖子更新推送插件(cookie设置)

License

MIT