mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修复只输入主命令时不发送帮助提示的bug
This commit is contained in:
@@ -90,7 +90,7 @@ def add_default_handlers(matcher: type[AlconnaMatcher]) -> None:
|
|||||||
|
|
||||||
@matcher.handle()
|
@matcher.handle()
|
||||||
async def _(matcher: Matcher, matches: AlcMatches):
|
async def _(matcher: Matcher, matches: AlcMatches):
|
||||||
if matches.head_matched and matches.options != {}:
|
if matches.head_matched and matches.options != {} or matches.main_args == {}:
|
||||||
await matcher.finish(
|
await matcher.finish(
|
||||||
(f'{matches.error_info!r}\n' if matches.error_info is not None else '')
|
(f'{matches.error_info!r}\n' if matches.error_info is not None else '')
|
||||||
+ f'输入"{matches.header_result} --help"查看帮助'
|
+ f'输入"{matches.header_result} --help"查看帮助'
|
||||||
|
|||||||
Reference in New Issue
Block a user