MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    技术交流-如何实现高效率的消息过滤

    开发交流
    2
    2
    246
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Danile0 last edited by

      各位大佬,官方文档可以通过GlobalEventChannel过滤,但是我觉得比较麻烦,每个都需要去注册单独的事件。

      现在我想像simbot那样,通过自定义注解加AOP去实现消息的过滤,有没有可实现的方法,或者说怎么加载AOP呢?

      1 Reply Last reply Reply Quote 0
      • StageGuard
        StageGuard last edited by

        你可以自己实现一套运行时注解处理器

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact