mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-21 20:06:06 +00:00
fix: GroupNormalMessageReceived事件设置 alter 无效 (#803)
This commit is contained in:
@@ -62,9 +62,8 @@ class ChatMessageHandler(handler.MessageHandler):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if event_ctx.event.alter is not None:
|
if event_ctx.event.alter is not None:
|
||||||
query.message_chain = mirai.MessageChain([
|
# if isinstance(event_ctx.event, str): # 现在暂时不考虑多模态alter
|
||||||
mirai.Plain(event_ctx.event.alter)
|
query.user_message.content = event_ctx.event.alter
|
||||||
])
|
|
||||||
|
|
||||||
text_length = 0
|
text_length = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user