mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-17 16:20:05 +08:00
Fix log
This commit is contained in:
parent
8e9fe27e69
commit
1a87348617
@ -431,7 +431,10 @@ async def handle_command(bot: NoneBot, ctx: Dict[str, Any]) -> bool:
|
|||||||
session = None
|
session = None
|
||||||
if not session:
|
if not session:
|
||||||
cmd, current_arg = parse_command(bot, str(ctx['message']).lstrip())
|
cmd, current_arg = parse_command(bot, str(ctx['message']).lstrip())
|
||||||
if not cmd or cmd.only_to_me and not ctx['to_me']:
|
if not cmd:
|
||||||
|
logger.debug('Not a known command, ignored')
|
||||||
|
return False
|
||||||
|
if cmd.only_to_me and not ctx['to_me']:
|
||||||
logger.debug('Not to me, ignored')
|
logger.debug('Not to me, ignored')
|
||||||
return False
|
return False
|
||||||
session = CommandSession(bot, ctx, cmd, current_arg=current_arg)
|
session = CommandSession(bot, ctx, cmd, current_arg=current_arg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user