MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. hatmony
    3. Best
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 34
    • Best 3
    • Controversial 0
    • Groups 1

    Best posts made by hatmony

    • RE: Spring Boot Mirai

      引入 mirai-core-jvm 就能写一个spring boot 的starter 项目了,打完包一键启动,我1核2G的云服务器跑起来也毫无压力,参考 https://gitee.com/nekotori/neko-qqbot

      posted in 插件发布
      H
      hatmony
    • RE: 请问MiraiAndiord能不能更改登录协议?

      ANDROID_PHONE()

      ANDROID_PAD()

      ANDROID_WATCH()
      看了下安卓有这3种

      posted in 使用交流
      H
      hatmony
    • RE: 求问java下如何获取信息中被@的人的qq号

      简单点就直从MessageChain中拿到net.mamoe.mirai.message.data.At,然后拿到qq号。
      参考代码如下:
      MessageChain message = groupMessageEvent.getMessage();
      for(SingleMessage s:message){
      if(s instanceof At){
      String qqid= ((At)s).getTarget()
      //TODO
      }
      }

      posted in 开发交流
      H
      hatmony
    • 1 / 1