From 0f35613e506f5b16f9125c4c0784363bbb63d341 Mon Sep 17 00:00:00 2001 From: snowy Date: Thu, 23 May 2024 23:32:02 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=A8=A1=E5=9E=8B=E5=82=A8=E5=AD=98=E6=97=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8D=E5=85=BC=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_statistics/stat_monitors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteyuki/plugins/liteyuki_statistics/stat_monitors.py b/liteyuki/plugins/liteyuki_statistics/stat_monitors.py index 5db82df..d6b1567 100644 --- a/liteyuki/plugins/liteyuki_statistics/stat_monitors.py +++ b/liteyuki/plugins/liteyuki_statistics/stat_monitors.py @@ -40,7 +40,7 @@ async def onebot_v11_event_monitor(bot: v11.Bot, event: v11.MessageEvent): message_id=str(event.message_id), - message=event.message, + message=str(event.message), message_text=event.raw_message, message_type=event.message_type, ) @@ -63,7 +63,7 @@ async def onebot_v12_event_monitor(bot: v12.Bot, event: v12.MessageEvent): message_id=str(event.message_id), - message=event.message, + message=str(event.message), message_text=event.raw_message, message_type=event.message_type, ) @@ -85,7 +85,7 @@ async def satori_event_monitor(bot: satori.Bot, event: satori.MessageEvent): group_id=group_id, user_id=str(event.user.id), message_id=str(event.message.id), - message=event.message, + message=str(event.message), message_text=event.message.content, message_type=event_utils.get_message_type(event), )