diff --git a/liteyuki/plugins/liteyuki_statistics/stat_monitors.py b/liteyuki/plugins/liteyuki_statistics/stat_monitors.py index 5db82dff..d6b15677 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), )