MiraiForum

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

    hatmony

    @hatmony

    摸鱼

    2
    Reputation
    1
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    hatmony Unfollow Follow
    摸鱼

    Best posts made by 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

    Latest posts made by hatmony

    • RE: 求问java下如何获取信息中被@的人的qq号

      @HOLIC https://github.com/mamoe/mirai/blob/dev/mirai-core-api/src/commonMain/kotlin/contact/Member.kt 其实参考源码注释就有详细说明。
      群昵称:member.getNameCard()

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

      @HOLIC 还有点小问题,long qqid=((At)s).getTarget();

      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
    • RE: 写定时任务出现的一些问题()

      我是用springboot+mirai-core实现bot的,用最简单的@Scheduled的默认配置 进行同步定时任务发消息(即最后调用sendMessage)是没问题的。

      posted in 开发交流
      H
      hatmony
    • RE: 部分用户私信bot无视指令

      bot是可以实现对特定事件监听,具体得看监听实现这块,比如是否是只监听群消息(GroupMessageEvent),对私人信息(FriendMessageEvent)是否有限制

      posted in BUG反馈
      H
      hatmony
    • RE: 有没有大佬开发和高考有关的插件

      关键是获得数据来源

      posted in 开发交流
      H
      hatmony
    • RE: 我又来给阿里泼脏水了,踩雷预警

      如果对数据库性能需求不大,都可以用sqlite了,安装都免了

      posted in 摸鱼区
      H
      hatmony
    • RE: 安全升级公告

      好,安全维护还是很必要的

      posted in 官方公告
      H
      hatmony
    • RE: 把mirai放入springboot了,但是我想装点社区里的插件该如何实现呢?

      要直接用得实现插件接口,device和cache放哪倒是小事

      posted in 开发交流
      H
      hatmony
    • RE: 请问MiraiAndiord能不能更改登录协议?

      ANDROID_PHONE()

      ANDROID_PAD()

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

      posted in 技术交流板块
      H
      hatmony