mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🎨 新增event.reply
This commit is contained in:
parent
7dfce8f96e
commit
f0479b34e6
@ -45,6 +45,8 @@ async def msg_process(msg: MessageReceive) -> Event:
|
|||||||
elif _msg.type == 'image':
|
elif _msg.type == 'image':
|
||||||
event.image = _msg.data
|
event.image = _msg.data
|
||||||
event.image_list.append(_msg.data)
|
event.image_list.append(_msg.data)
|
||||||
|
elif _msg.type == 'reply':
|
||||||
|
event.reply = _msg.data
|
||||||
_content.append(_msg)
|
_content.append(_msg)
|
||||||
event.content = _content
|
event.content = _content
|
||||||
return event
|
return event
|
||||||
|
@ -28,6 +28,7 @@ class Event(MessageReceive):
|
|||||||
image_list: List[Any] = []
|
image_list: List[Any] = []
|
||||||
at_list: List[Any] = []
|
at_list: List[Any] = []
|
||||||
is_tome: bool = False
|
is_tome: bool = False
|
||||||
|
reply: Optional[str] = None
|
||||||
|
|
||||||
|
|
||||||
class MessageSend(Struct):
|
class MessageSend(Struct):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user