From 4bb1ea7c3541f84fcd113db450c4a6e15e244682 Mon Sep 17 00:00:00 2001 From: Mix Date: Fri, 21 Feb 2020 18:37:19 +0800 Subject: [PATCH] Update message.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不好意思犯了脑抽错误…… --- nonebot/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot/message.py b/nonebot/message.py index b27d3349..6afa6496 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -79,7 +79,7 @@ def _check_at_me(bot: NoneBot, ctx: Context_T) -> None: if last_msg_seg == at_me_seg: ctx['to_me'] = True - del ctx['message'][i:] + del ctx['message'][i:]ctx["message"] if not ctx['message']: ctx['message'].append(MessageSegment.text('')) @@ -117,4 +117,4 @@ def _log_message(ctx: Context_T) -> None: msg_from += f'@[讨论组:{ctx["discuss_id"]}]' logger.info(f'Self: {ctx["self_id"]}, ' f'Message {ctx["message_id"]} from {msg_from}: ' - f'{ctx["message"].__repr__()}') + f'{str(ctx["message"]).__repr__()}')