MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. Moo-OvO
    M
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 4
    • 帖子 12
    • 最佳 0
    • 有争议的 0
    • 群组 0

    Moo-OvO

    @Moo-OvO

    0
    声望
    3
    资料浏览
    12
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    Moo-OvO 取消关注 关注

    Moo-OvO 发布的最新帖子

    • RE: Mysql使用报错not suittable

      @Moo-OvO 已经解决了 虽然不知道怎么解决的
      只是虚拟机环境换成本机环境随便跑了下 然后再丢vps就成功了 悲

      发布在 开发交流
      M
      Moo-OvO
    • RE: Mysql使用报错not suittable

      @Karlatemp ```
      [91m2022-07-01 02:05:27 W/stderr: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/plugins
      
      2022-07-01 02:05:27 W/stderr: at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
      
      2022-07-01 02:05:27 W/stderr: at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
      
      2022-07-01 02:05:27 W/stderr: at DataChech-1.0-SNAPSHOT.mirai.jar//org.moo.repository.MysqlData.getConn(MysqlData.java:26)
      
      2022-07-01 02:05:27 W/stderr: at DataChech-1.0-SNAPSHOT.mirai.jar//org.moo.repository.MysqlData.getPoints(MysqlData.java:36)
      
      2022-07-01 02:05:27 W/stderr: at DataChech-1.0-SNAPSHOT.mirai.jar//org.moo.DataChech.set(DataChech.java:29)
      
      2022-07-01 02:05:27 W/stderr: at DataChech-1.0-SNAPSHOT.mirai.jar//org.moo.DataChech.onEnable(DataChech.java:23)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:119)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:262)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:34)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:183)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:231)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158)
      
      2022-07-01 02:05:27 W/stderr: at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46)
      
      2022-07-01 02:05:27 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
      2022-07-01 02:05:27 W/stderr: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
      2022-07-01 02:05:27 W/stderr: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
      2022-07-01 02:05:27 W/stderr: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Utility.bootJars(Utility.java:89)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Utility.bootJars(Utility.java:79)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Utility.bootMirai(Utility.java:101)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Loader.tryCatching(Loader.java:146)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Loader.start(Loader.java:189)
      
      2022-07-01 02:05:27 W/stderr: at org.itxtech.mcl.Loader.main(Loader.java:79)
      
      2022-07-01 02:05:27 I/stdout: 0
      
      2022-07-01 02:05:27 I/HuYanSession: SessionData 已加载!
      2022-07-01 02:05:27 W/net.mamoe.mirai-api-http: USING INITIAL KEY, please edit the key
      2022-07-01 02:05:27 I/Mirai HTTP API: ********************************************************
      2022-07-01 02:05:27 I/http adapter: >>> [http adapter] is listening at http://localhost:8080
      2022-07-01 02:05:27 I/Mirai HTTP API: Http api server is running with verifyKey: INITKEYamZpzC95
      2022-07-01 02:05:27 I/Mirai HTTP API: adaptors: [http]
      2022-07-01 02:05:27 I/Mirai HTTP API: ********************************************************
      2022-07-01 02:05:27 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418
      2022-07-01 02:05:27 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用
      2022-07-01 02:05:27 I/main: 4 plugin(s) enabled.

      控制台不知道为什么无法选中 这段是log里面的提示
      发布在 开发交流
      M
      Moo-OvO
    • RE: Mysql使用报错not suittable

      @Karlatemp 9a430701-1554-463d-a67c-de3a7ea9c621-image.png
      还是有些问题...
      检查了url感觉没问题...是不是不应该用HikariPC

      发布在 开发交流
      M
      Moo-OvO
    • Mysql使用报错not suittable

      72fa2cf1-6921-42dd-82db-bcc44ab3e024-image.png
      检查了url格式是正确的
      用的本地127.0.0.1:3306
      3af71cc4-b9e1-4974-b8d9-fd9e8d007571-image.png
      既然说是没有驱动...那就什么都不用了
      直接用了jdk里面的
      2cf6939f-127e-4fb3-8526-0cd2e184423b-image.png
      7b859e65-cc44-4554-895e-22716ab014a1-image.png
      崩
      用原生的也不行 显示 not suittable
      网上的办法如 bin/ext放入驱动或者论坛中plugin丢驱动都尝试了
      就是不加载jdbc 是构建问题还是其他?
      使用的是mirai的插件

      发布在 开发交流
      M
      Moo-OvO
    • RE: [壶言]一款各种自定义回复消息插件

      @Moyuyanli 回复的换行
      学习 测试 换行\n这是下一行 精准 全局
      如这种 但是输入测试 机器人回复并未换行 检测配置发现不是\n 需要手动编辑

      发布在 插件发布
      M
      Moo-OvO
    • RE: [壶言]一款各种自定义回复消息插件

      怎么方便些做\n?现在似乎要手动配置文件写\n

      发布在 插件发布
      M
      Moo-OvO
    • 关于使用代码登录

      使用教程中的APK加上login qq 密码得以成功的手动登录
      然后在写插件时我想在加载插件时自动登录( bot.login() )
      使用的是安卓平板协议 结果出现了需要验证的问题
      (QQ申请时间不到一天)
      之前使用老账号时成功自动登录了,求解惑

      发布在 开发交流
      M
      Moo-OvO
    • [已解决]写了个json的配置文件测试时发生报错

      自己找到问题
      是打包问题 不过为什么用gradle原生打包会报错呢奇怪
      没用mirai打包出的插件(主要还是嫌弃太大了 470KB)

      java.lang.IllegalStateException: Exception while broadcasting event 'FriendMessageEvent'
      java.lang.IllegalStateException: Exception while broadcasting event 'FriendMessageEvent'
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:96)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$1.invokeSuspend(EventDispatcher.kt)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
              at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:147)
              at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
              at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:147)
              at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
              at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
      Caused by: java.lang.IllegalStateException: 未找到异常处理器. 请继承 SimpleListenerHost 中的 handleException 方法, 或在 构造 SimpleListenerHost 时提供 CoroutineExceptionHandler
      

      ==================================================
      这里是部分 在报错最下面有一行我的读取API 跑了下没问题
      监听方法是继承SimpleListenerHost
      不知道哪里的问题

      发布在 开发交流
      M
      Moo-OvO
    • RE: 群聊中发送信息

      @bloock 自用一个太阳的号,放着不管一天莫名其妙可以了,估计是太久没说话的问题
      对于你的问题,我没理解你的要求

      发布在 开发交流
      M
      Moo-OvO
    • 群聊中发送信息

      按照教程使用JAVA注册了一个群聊的信息监听
      在后台中显示出了(Group(群号)<- 信息) 但是在群聊中没有看到

      if(g.getMessage().contentToString().equalsIgnoreCase("测试")){
                      try {
                          // xxx为g.getSender().getid()
                          g.getGroup().sendMessage(new At(xxx).plus("收到测试"));
                      } catch (FileNotFoundException e) {
                          e.printStackTrace();
                      }
                  }
      
      发布在 开发交流
      M
      Moo-OvO