Skip to main content

扫描当前所有matcher,总结命令

Project description

命令探查 0.0.1

缓解下载了新插件却不会使用的焦虑

使用scan-all指令,让bot展示一份简陋甚至错误百出的帮助菜单

使用scan-search <name>指令,让bot展示<name>相关的内容

使用scan-list指令,让bot展示所有模块名

效果示例

以安装了nonebot_plugin_game_collection为例

scan-search 赛马

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '创建赛马'/'赛马创建'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '开始赛马'/'赛马开始'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '暂停赛马'/'赛马暂停'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '赛马事件重载'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '赛马加入'/'加入赛马'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '赛马清空'/'清空赛马'

Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调名称] _
[可用命令] [cmds] '赛马重置'/'重置赛马'

实现原理

遍历nonebot.matcher.matchers对象,分析所有Matcher

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_ayaka_scan_cmd-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page