扫描当前所有matcher,总结命令
Project description
命令探查 0.0.2
缓解下载了新插件却不会使用的焦虑
使用scan-all
指令,让bot展示一份简陋甚至错误百出的帮助菜单
使用scan-search <name>
指令,让bot展示<name>
相关的内容
使用scan-list
指令,让bot展示所有模块名
效果示例
以安装了nonebot_plugin_game_collection
为例
scan-search 赛马
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '创建赛马'/'赛马创建'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '加入赛马'/'赛马加入'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '清空赛马'/'赛马清空'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '赛马事件重载'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '赛马开始'/'开始赛马'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '赛马暂停'/'暂停赛马'
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] nonebot_plugin_game_collection
[回调位置] nonebot_plugin_game_collection
[回调名称] _
[可用命令]
[cmds] '赛马重置'/'重置赛马'
[回调注释] 无
以安装了nonebot_plugin_ayaka_games
为例
scan-search suspect
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] box_entrance
[可用命令]
[cmds] '谁是卧底'
[other] 未知指令
[回调注释] 打开应用
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] exit_play
[可用命令]
[cmds] 'exit'/'退出'
[other] 未知指令
[回调注释] 无
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] exit_room
[可用命令]
[cmds] 'exit'/'退出'
[other] 未知指令
[回调注释] 关闭游戏
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] join
[可用命令]
[cmds] 'join'/'加入'
[other] 未知指令
[回调注释] 加入房间
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] leave
[可用命令]
[cmds] '离开'/'leave'
[other] 未知指令
[回调注释] 离开房间
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] play_info
[可用命令]
[cmds] '信息'/'info'
[other] 未知指令
[回调注释] 展示投票情况
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] room_info
[可用命令]
[cmds] '信息'/'info'
[other] 未知指令
[回调注释] 展示房间内成员列表
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] start
[可用命令]
[cmds] 'start'/'begin'/'开始'
[other] 未知指令
[回调注释] 开始游戏
Ayaka Bot(123) 说:
[模块名称] ayaka.box
[回调位置] ayaka_games.plugins.who_is_suspect
[回调名称] vote
[可用命令]
[cmds] 'vote'/'投票'
[other] 未知指令
[回调注释] 请at你要投票的对象,一旦投票无法更改
实现原理
遍历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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aeaeb47687333073dcb6647f1455c611c8cba248b56fa7e059280f5bf35b73c |
|
MD5 | 2ee49aa58e371f79c22c415edaa03410 |
|
BLAKE2b-256 | d7290079cad78485d8853e87ef79b3eb95b5385015abedecca040617561777f9 |
Close
Hashes for nonebot_plugin_ayaka_scan_cmd-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa40494d5ad920eb3b93b5d1a1bb8ce889bae1f06b5edaff2a54ed638ac74832 |
|
MD5 | c0dc8977ba20dcccb417280ec8871491 |
|
BLAKE2b-256 | 9c2368694cc70ab4feed70930051f2891ee5d3cbb6eef728cc5a7256eb825109 |