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-command-creator-extender

v1.3.0

Published

创建和扩展指令!自定义搭配你的指令,互相调用!可以实现【一键打卡】类似的功能,一键触发多指令~ 灵感来自[command-creator](https://www.npmjs.com/package/koishi-plugin-command-creater)

Downloads

705

Readme

koishi-plugin-command-creator-extender

npm

Command Creator Extender 是一个 Koishi 插件,用于将已有的指令映射到其他指令,并允许用户自定义指令。

功能

  • 指令映射:通过配置表将输入指令映射到多个输出指令。
  • 自定义指令:用户可以创建自定义指令,指定其行为为回复消息或执行其他指令。
  • 日志调试:启用调试模式以输出详细日志信息。

使用方法

您可以在 table2 表格中指定【关键词或已经注册的指令】的调用关系。

注意事项

  • table2:在执行完【关键词或原始指令】之后,会自动执行右侧的【下一个指令】。可以指定多个重复的【关键词或原始指令】以实现多重调用。

配置项

指令设置

  • table2:指令调用映射表。因为不是注册指令,只是匹配接收到的消息,所以如果希望有前缀触发的话,需要加上前缀。当然也可以写已有的指令名称比如【/help】(需要指令前缀)。

    示例配置:

    [
      {
        "rawCommand": "/help",
        "nextCommand": "status"
      },
      {
        "rawCommand": "/一键打卡",
        "nextCommand": "今日运势"
      },
      {
        "rawCommand": "/一键打卡",
        "nextCommand": "签到"
      },
      {
        "rawCommand": "/一键打卡",
        "nextCommand": "鹿"
      }
    ]

调试设置

  • reverse_order:是否逆序执行指令(先执行下一个指令再执行原始指令)。默认为 false
  • loggerinfo:日志调试模式。默认为 false

许可证

此项目遵循 MIT 许可证。