From 6fa91452bfb797b2c17885f6654ab2fa26122f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Sat, 11 Mar 2023 17:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E8=B0=83=E6=95=B4`GsLogger`?= =?UTF-8?q?=E7=9A=84`bot=5Fid`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsuid_core/bot.py b/gsuid_core/bot.py index 833f341..2c785b4 100644 --- a/gsuid_core/bot.py +++ b/gsuid_core/bot.py @@ -40,7 +40,7 @@ class _Bot: target_type=target_type, target_id=target_id, ) - logger.info(f'[发送消息to] {target_id}') + logger.info(f'[发送消息to] {bot_id} - {target_type} - {target_id}') await self.bot.send_bytes(msgjson.encode(send)) async def _process(self): @@ -59,7 +59,7 @@ class Bot: self.bot = bot self.ev = ev self.logger = self.bot.logger - self.bot_id = self.bot.bot_id + self.bot_id = ev.bot_id async def send(self, message: Union[Message, List[Message], str, bytes]): return await self.bot.target_send(