Merge branch 'master' of github.com:Genshin-bots/gsuid-core

This commit is contained in:
Wuyi无疑 2023-03-11 17:53:41 +08:00
commit 5bd62d52c4

View File

@ -40,7 +40,7 @@ class _Bot:
target_type=target_type, target_type=target_type,
target_id=target_id, 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)) await self.bot.send_bytes(msgjson.encode(send))
async def _process(self): async def _process(self):
@ -59,7 +59,7 @@ class Bot:
self.bot = bot self.bot = bot
self.ev = ev self.ev = ev
self.logger = self.bot.logger 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]): async def send(self, message: Union[Message, List[Message], str, bytes]):
return await self.bot.target_send( return await self.bot.target_send(