MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. 综合讨论
    3. 开发交流
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • 御寒剑影

      群联系人列表缓存问题
      • 御寒剑影

      4
      0
      Votes
      4
      Posts
      332
      Views

      御寒剑影

      正在写一个检测名片违规的功能
      但Mirai的 成员名片更改 事件,需要 被改名人在群内发言才会触发,而且有时候还会有 成员已经更名,Bot获取到的仍旧是旧名片的情况,似乎是缓存问题,但在文档里没有找到手动清除或者刷新缓存的方法
      如上,求教

    • 2

      为啥直接打包会出现找不到或无法加载主类
      • 2254262642

      4
      0
      Votes
      4
      Posts
      161
      Views

      2

      为啥直接打包会出现找不到或无法加载主类

    • dddqmmx

      This topic is deleted!
      • dddqmmx

      4
      0
      Votes
      4
      Posts
      113
      Views
    • hhikk5558

      有没有人做个准点报时发送语音报时呢[PHP源码分享]
      • hhikk5558

      5
      0
      Votes
      5
      Posts
      469
      Views

      hhikk5558

      我这里有个api源码有准点保时的PHP源码,没有后台
      源码链接:未知apiPHP源码
      源码里有amr语音,分别是01点到24点的语音报时,还有一些其他接口,不知道能不能用
      以下是截图截图1截图2

    • B

      Unsolved 导入日志框架依赖后 idea中运行无问题,实际使用找不到日志框架
      • bigcyy

      3
      0
      Votes
      3
      Posts
      247
      Views

      B

      导入日志框架依赖后 idea中运行无问题,实际使用提示
      ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
      69af7f64-5c3d-44b6-b60e-1c948e6922d4-image.png

    • B

      请问下,用java如何实现连续对话
      java • • bigcyy

      9
      0
      Votes
      9
      Posts
      806
      Views

      B

      有一个需求,用户发送登录,然后机器人回复验证码图片,用户回复验证码给机器人,机器人进行登录原来是用的两个群消息事件来实现的。看miria文档有kt代码可以实现类似功能(event处kt工具类),请问用java怎么写😭😭😭

    • X

      图片过期机制
      • XDorz

      5
      0
      Votes
      5
      Posts
      441
      Views

      X

      求解大佬:
      本人使用mirai的sdk包进行开发,使用时发现多次上传同一张图片所获得的imageId都是相同的,那么我每天进行的图片重新上传防止过期还有意义吗,直接保存下imageid以后使用是否都能成功显示?

    • H

      机器人发送消息失败 resultType = 46
      • h906478231

      3
      0
      Votes
      3
      Posts
      170
      Views

      H

      GroupMessagePostSendEvent 响应 exception=java.lang.IllegalStateException: Send message failed: MessageSvcPbSendMsg.Response.Failed(resultType=46, errorCode=0, errorMessage=), receipt=null)" 有人遇到过吗

    • P

      Solved 插件运行时reflections框架无法扫描到带有对应注解的类
      • pqwoeiruty

      3
      0
      Votes
      3
      Posts
      291
      Views

      P

      工程是idea里mirai console插件里自带的java工程模板

      jdk版本:openjdk 17

      问题代码:

      Class CommandMap{ public CommandMap(boolean scan) { if (scan) this.scan(); } private void scan() { Reflections reflector = new Reflections("com.example"); Set<Class<?>> classes = reflector.getTypesAnnotatedWith(Command.class); } }

      调用(测试)均通过以下方式调用:

      CommandMap cm=new CommandMap(true);

      问题描述:使用项目模板自带的运行配置运行,reflections框架无法扫描到带有对应注解的类,使用junit运行测试代码可以扫描到对应的类。
      直接运行代码,classes的size为0,没有扫描到类
      捕获.PNG
      使用junit运行测试代码,classes的size为1,成功扫描到了一个类
      捕获1.PNG

    • 7

      如何导出当前的Bot的 BotConfiguration.deviceInfo
      • 791549729

      1
      0
      Votes
      1
      Posts
      95
      Views

      7

      如何导出当前的Bot的 BotConfiguration.deviceInfo

    • hujiayucc

      This topic is deleted!
      • hujiayucc

      3
      0
      Votes
      3
      Posts
      46
      Views
    • yiluo

      mirai-api-http能否用api登录多个bot
      • yiluo

      1
      0
      Votes
      1
      Posts
      136
      Views

      yiluo

      mirai-api-http能否用api登录多个bot

    • X

      如何实现把小程序卡片发送至群?
      • xuejie

      2
      0
      Votes
      2
      Posts
      310
      Views

      X

      如何实现把小程序卡片发送至群?目前官方文档里面没有对应的参数

    • nikerck

      文档这里是错了吗?
      • nikerck

      1
      0
      Votes
      1
      Posts
      132
      Views

      nikerck

      d4cb1a95-258e-4055-b03e-ad7be874212c-image.png

      这里是写错了吗?,我用JSimpleCommand才正常

    • T

      有没有快照版本的库
      • Taskeren

      3
      0
      Votes
      3
      Posts
      206
      Views

      T

      因为我的项目中用到了 Ktor 2,这个功能在 2.13.0-M1 中被提及,但是目前中央库里最新的是 2.12.1 仍然用的 Ktor 1,而且会造成冲突。
      所以请问有没有能够获取快照或者预览版的库。

    • N

      'code': 500, 'msg': "Fields [target, memberId] are required for type with serial name
      • nksolo

      1
      0
      Votes
      1
      Posts
      121
      Views

      N

      get_id={"sessionKey":authkey ,"target": 1043729733,"memberId": 2803669474}
      res=requests.get(url,data=json.dumps(get_id)).json()

      报错:{'code': 500, 'msg': "Fields [target, memberId] are required for type with serial name 'net.mamoe.mirai.api.http.adapter.internal.dto.parameter.MemberTargetDTO', but they were missing"}

    • ConstantineQAQ

      idea导入gradle项目时下载jar包超级慢,下载一下午也没下好
      • ConstantineQAQ

      3
      0
      Votes
      3
      Posts
      165
      Views

      ConstantineQAQ

      e5f0cd26-76b6-4fc1-a364-5882a843b534-image.png

    • R

      Unsolved 请问有哪些消息支持二次发送?
      • refparo

      2
      0
      Votes
      2
      Posts
      180
      Views

      R

      特别是序列化到本地、反序列化再二次发送。文档里只看到 FileMessage 不允许二次发送,有别的禁止二次发送的消息吗?

    • 7

      怎么发送一条匿名群消息
      • 791549729

      1
      0
      Votes
      1
      Posts
      121
      Views

      7

      怎么发送一条匿名群消息

    • AdorableParker

      如何调用前置插件的方法
      • AdorableParker

      3
      1
      Votes
      3
      Posts
      288
      Views

      AdorableParker

      是需要编辑build.gradle文件,让其作为本地依赖导入吗

    • 1
    • 2
    • 13
    • 14
    • 15
    • 16
    • 17
    • 36
    • 37
    • 15 / 37
    Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact