-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Feature]@消息不会被filter.EventMessageType.ALL捕获 #8295
Copy link
Copy link
Open
Labels
area:coreThe bug / feature is about astrbot's core, backendThe bug / feature is about astrbot's core, backendenhancementNew feature or requestNew feature or requestfeature:pluginThe bug / feature is about AstrBot plugin system.The bug / feature is about AstrBot plugin system.
Metadata
Metadata
Assignees
Labels
area:coreThe bug / feature is about astrbot's core, backendThe bug / feature is about astrbot's core, backendenhancementNew feature or requestNew feature or requestfeature:pluginThe bug / feature is about AstrBot plugin system.The bug / feature is about AstrBot plugin system.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description / 描述
在使用Astrbot插件监听消息事件时候,使用捕获消息的时候纯粹的@消息不会被捕获
Use Case / 使用场景
@filter.event_message_type(filter.EventMessageType.ALL, priority=1001)
async def intercept(self, event: AstrMessageEvent):
logger.info(f"收到消息")
event.set_result(event.plain_result(
self.config.get("reply_text", "s属性大爆发,sleeping!睡觉中,谁的请求都不搭理喵!")
))
当消息为纯粹的@消息时候,事件捕获不到该消息
Willing to Submit PR? / 是否愿意提交PR?
Code of Conduct