mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45: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
|
||||
if not session:
|
||||
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')
|
||||
return False
|
||||
session = CommandSession(bot, ctx, cmd, current_arg=current_arg)
|
||||
|
Loading…
Reference in New Issue
Block a user