mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 05:17:24 +08:00
🐛 修复了消息模型储存时类型不兼容的问题
This commit is contained in:
parent
4cfad0b5ca
commit
0f35613e50
@ -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),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user