Improve command experience

This commit is contained in:
Richard Chien
2018-06-30 10:58:56 +08:00
parent dc889045c8
commit 0c74fbadca
2 changed files with 19 additions and 6 deletions

View File

@ -263,6 +263,10 @@ def _new_command_session(bot: CQHttp,
:param ctx: message context
:return: CommandSession object or None
"""
if not ctx['to_me']:
# TODO: 支持不需要 at 的命令
return None
msg_text = str(ctx['message']).lstrip()
for start in bot.config.COMMAND_START: