Skip to content

[Feature]@消息不会被filter.EventMessageType.ALL捕获 #8295

@Elysia66636

Description

@Elysia66636

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!睡觉中,谁的请求都不搭理喵!")
))
当消息为纯粹的@消息时候,事件捕获不到该消息

Image

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or requestfeature:pluginThe bug / feature is about AstrBot plugin system.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions