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

pupbot-plugin-better-keywords-rebuild

v5.0.1

Published

更好的关键词回复重制版

Downloads

23

Readme

更好的关键词回复-重制版 | pupbot-plugin-better-keywords-rebuild / kivibot-plugin-better-keywords-rebuild

用于自定义关键字并回复(有分群、私聊功能)

npm-version dm 交流反馈群: 群号: 652833880

安装

/plugin add better-keywords-rebuild

启用

/plugin on better-keywords-rebuild

兼容性提示

现已支持 kivibotpupbot, 但本插件仅在 pupbot 进行测试, 不保证完全兼容 kivibot!

  • 本插件与 better-keywords 不兼容
  • 本插件为 better-keywords 重制版, 功能几乎相同, 安装本插件前请卸载 better-keywords

指令

  • /bkw/bkw help -> 获取帮助
  • /bkw lang set <lang-code> -> 设置语言 (例如 改为简体中文: /bkw lang set 简中; 改为繁体中文: /bkw lang set 繁中; 改为英文: /bkw lang set en-us; )
  • /bkw add / rm -> 添加 / 删除关键字 (例如 设置test所有群聊和人都回复你好<换行>我在哦~并开启模糊匹配: /bkw add test g 你好\n我在哦~ +f)
  • /bkw about -> 关于界面
  • /bkw reloadrl -> 重载插件
  • /bkw updateup -> 检查更新
  • /bkw aliasas add/remove/a/rm <原命令> <别名> -> 新增/删除命令别名

特色

  • 支持QQ发送图片并添加到回复内容中*

    QQ发送图片可能会过期, 具体要看tx的策略

  • 支持自定义提示文本(在插件安装目录./languages.js中)

配置文件详解

{
    "keywords": {  // 主键(root)
        // 当前群聊{ <gid(群号)>: { <key>: value: [{value: <value>, type: <type>}], extra: {}} } }
        "groups": {},
        // 全局群聊{<key>: value: [{value: <value>, type: <type>}], extra: {}}
        "global-g": {},
        // 全局私聊{<key>: value: [{value: <value>, type: <type>}], extra: {}}
        "global-f": {},
        // 全局群聊和私聊{<key>: value: [{value: <value>, type: <type>}], extra: {}}
        "global": {}
    }
}

已知异常但未修复的问题

  • 未知原因导致再kivibot自动更新异常
    插件better-keywords-rebui1d禁用过程中发生错误:
    Cannot read properties of undefined (reading 'admins')
    ReferenceError: msg is not defined
      at Object.reloadPlugin (D:\QQ机器人\KiviBot\node_modules\kivibot-plugin-better-keywords-rebuild\index.js:929:44)
      at process.processTicksAndRejections (node:internal/process/task queues:95:5)
    
    msg is not defined
    反馈者: QQ@山重水复

已修复的问题 / 已修复的不合理设定

  • [x] 在首次创建群聊项时创建群聊子键失败 (反馈者: QQ@蓝衒)
  • [x] 在g模式下globalFriendsValue is not defined (反馈者: QQ@蓝衒)
  • [x] 删除用于调试的错误 throw '这是一个错误'
  • [x] 修改/bkwabout设定以避免刷屏(about 已移步 /bkw about)
  • [x] 使用QQ消息指令设置语言无效
  • [x] 语言文件未找到
  • [x] TypeError: value.includes is not a function
  • [x] ReferenceError: globalFriendsValue is not defined
  • [x] \n 不会替换为 换行
  • [x] 版本比较问题
  • [x] 检查更新失效
  • [x] \n \t 不会替换为 换行符 制表符
  • [x] 版本重复更新(npm缓存未刷新)
  • [x] 插件重载和自动更新问题
  • [x] 自动更新如果当前版本是最新版本则下次无法手动更新

大版本看点

  • V3.0.0 新增模糊匹配(详见/bkw help)
  • V3.0.4 新增对 kivibot 支持
  • V4.0.0 对语言文件进行重构, 现已完全支持多语言
  • V4.0.5 新增更新提示, 修复/bkw up显示问题, 修复插件重载问题
  • V5.0.0 对图片、多种表情等进行关键词支持