扫描当前所有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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_ayaka_scan_cmd-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba384e9df7b7030e92c7f2d27cd696243ac36e9d4dca52aa2b5611cf68da8d0 |
|
MD5 | 38c05dacb51aa10b30238587a497c0ce |
|
BLAKE2b-256 | b8bca0c660cdbfb872f606c278caab3072d615582a1615fb73499c5844292633 |
Close
Hashes for nonebot_plugin_ayaka_scan_cmd-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915ddac41410156ce93ce362812e2b628e82169cd57fa9b62228383136372ea1 |
|
MD5 | 6279c5536607fded5aac869ce08d9844 |
|
BLAKE2b-256 | 3589b1afc8ccc03d5be2ef9aa99fe8f99781b88008862e0b9d02bf4b201fcf71 |