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

koishi-plugin-message-counter

v2.1.5

Published

Koishi 的消息数量统计插件。生成各种发言排行榜。

Downloads

146

Readme

koishi-plugin-message-counter

npm

简介

Koishi 的消息数量统计插件。发言排行榜。

注意事项

  • 仅记录群聊消息。
  • 初始化:需要权限等级 3 级。

关键指令

  • messageCounter.查询 [指定用户]: 查询指定用户的发言次数信息(次数[排名])。

    • --yesterday/-d/-w/-m/-y/-t: 分别查询昨日/今日/本周/本月/今年/总发言次数[排名] 。
    • --ydag/--dag/--wag/--mag/--yag/-a: 分别查询跨群昨日/今日/本周/本月/今年/总发言次数[排名]。
  • messageCounter.排行榜 [显示的人数]: 发言排行榜,使用以下选项指定类型:

    • --whites: 白名单,只显示白名单用户,以空格、中英文逗号和顿号作为分隔符。
    • --blacks: 黑名单,不显示黑名单用户,以空格、中英文逗号和顿号作为分隔符。
    • --yesterday/-d/-w/-m/-y/-t: 分别查询昨日/今日/本周/本月/今年/总发言排行榜。
    • --ydag/--dag/--wag/--mag/--yag/--dragon: 分别查询跨群昨日/今日/本周/本月/今年/总发言排行榜(圣龙王榜)。
    • 默认为今日发言榜。
  • messageCounter.群排行榜 [number:number]: 各个群聊的发言排行榜,可以指定显示的数量,也可以使用以下选项来指定排行榜的类型:

    • -s: 指定用户的群发言排行榜,可用 at 或 用户 ID 指定。
    • --whites: 白名单,只显示白名单群,以空格、中英文逗号和顿号作为分隔符。
    • --blacks: 黑名单,不显示黑名单群,以空格、中英文逗号和顿号作为分隔符。
    • -d/-w/-m/-y/-t/--yesterday: 分别查询昨日/今日/本周/本月/今年/总发言排行榜️。
    • 默认为今日发言榜。

自定义水平柱状图 3

  1. 用户图标:
  • 支持为同一用户添加多个图标,它们会同时显示。
  • data/messageCounterIcons 文件夹下添加用户图标,文件名为用户 ID (例如 1234567890.png)。
  • 多个图标的文件名需形如 1234567890-1.png1234567890-2.png
  1. 柱状条背景:
  • 支持为同一用户添加多个背景图片,插件会随机选择一个显示。
  • data/messageCounterBarBgImgs 文件夹下添加水平柱状条背景图片。
  • 多个图片的文件名需形如 1234567890-1.png1234567890-2.png
  • 建议图片尺寸为 850x50 像素,文件名为用户 ID (例如1234567890.png)。

重启插件以使更改生效。

示例截图

2ca8001d759e64dcecb8a952e3f23a4f

致谢

QQ 群

  • 956758505

License

MIT License © 2024