B站动态/直播检测插件 v3船新版本 低延迟 美观 可配置性高
-
@colter23 这是所有的报错
2021-11-24 19:30:54 E/Mirai HTTP API: java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt:67)
at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt)
at io.ktor.features.CORS$Feature.install(CORS.kt:521)
at io.ktor.features.CORS$Feature.install(CORS.kt:513)
at io.ktor.application.ApplicationFeatureKt.install(ApplicationFeature.kt:68)
at net.mamoe.mirai.api.http.route.BaseRouteKt.mirai(BaseRoute.kt:64)
at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:93)
at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:29)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:303)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:138)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:270)
at io.ktor.server.cio.CIOApplicationEngine$serverJob$1$1.invokeSuspend(CIOApplicationEngine.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
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)
[0m[m2021-11-24 19:31:25 E/BilibiliDynamic: kotlin.NotImplementedError: An operation is not implemented: MULTILINE STRING
kotlin.NotImplementedError: An operation is not implemented: MULTILINE STRING
at net.mamoe.yamlkt.internal.YamlUtils__EscapeKt.readUnquotedString(Escape.kt:175)
at net.mamoe.yamlkt.internal.YamlUtils.readUnquotedString(Unknown Source)
at net.mamoe.yamlkt.internal.TokenStream.prepareStringAndNextToken(TokenStream.kt:308)
at net.mamoe.yamlkt.internal.TokenStream.nextToken(TokenStream.kt:282)
at net.mamoe.yamlkt.internal.YamlDecoder$AbstractDecoder.nextToken(YamlDecoder.kt:89)
at net.mamoe.yamlkt.internal.YamlDecoder$BlockClassDecoder.decodeElementIndex(YamlDecoder.kt:271)
at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:75)
at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:47)
at net.mamoe.yamlkt.Yaml.decodeFromString(Yaml.kt:162)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.load(MultiFilePluginDataStorageImpl.kt:39)
at net.mamoe.mirai.console.plugin.jvm.AbstractJvmPlugin.reloadPluginConfig(AbstractJvmPlugin.kt:58)
at top.colter.mirai.plugin.bilibili.PluginMain.onEnable(PluginMain.kt:39)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:208)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
[0m[m -
@miharu07 cookie问题 ,参考-> 填写cookie后报错
-
@colter23 解决了,谢谢大佬指点~
-
@colter23 再问一下,我把机器人拉进群里,并在群里设置了订阅,为什么还是只给我私发而不在群里发(私聊也设置了订阅)
-
@miharu07 在群里发送
/bili list
确认是否订阅 -
@colter23 我把全部订阅都取消掉然后再去群里订阅就修复了,现在一个问题就是偶尔会弹一次检测失败:GOAWAY received (今天弹了三次)
昨晚提示了两次检测失败 EOF reached while reading
不知道是什么原因,b站api风控? -
-
@colter23 间隔设置的是默认15s,因为是第一次装,没放进服务器,是在电脑上部署的
我试一下2.0.3吧,目前用下来挺稳定的,要是能加一个群里@全员的功能就更好啦 -
2021-11-26 19:20:45 E/BilibiliDynamic: ERROR java.lang.ExceptionInInitializerError 2021-11-26 19:20:45 V/Bot.2876932165: Friend(1691914478) <- 动态检测失败\nnull
一直出现这个问题。
或是这样:
我用的是jre11,x32(因为要使用mirai native)
这是我的config:(直接复制了gitub的因为不这样做会一直报baidu translate的语法错误)# 可以是群号或QQ号 admin: 16914478 # 推送模式 # 0 :以文字形式推送 # 1 :以图片形式推送 (默认) pushMode: 1 # 添加订阅时是否允许bot自动关注未关注的用户 # 开启 true # 关闭 false autoFollow: true # Bot关注时保存的分组(最长16字符) # 如果要保存到默认分组请填写为 "" followGroup: Bot # 检测间隔(推荐15-30 最低10) 单位秒 # 不建议超过60,超过60可能会漏动态 interval: 30 # 图片推送模式用的字体 # 如不带后缀名则使用系统的字体,如系统中没有这个字体 则会使用系统默认字体 # 带后缀名则使用插件数据路径下 font 文件夹下的字体文件 # 如使用字体文件仅支持ttf格式 # 字体文件路径 data/BilibiliDynamic/font # 需自行创建font文件夹,并把字体文件放进去 font: LxgwMarkerGothic-Regular.ttf # cookie !!必填!! # cookie请包在双引号内 # 如何获取见下文 获取Cookie cookie: "" # 百度翻译 baiduTranslate: # 是否开启百度翻译 enable: true # 百度翻译api密钥 如需使用请自行申请 # https://api.fanyi.baidu.com/ APP_ID: '' SECURITY_KEY: ''
-
@fuyon 具体原因也不太清楚 不过你可以启动时加上这串参数试试
-Djava.awt.headless=true
还有不要把你的cookie放出来,用这个可以直接登陆你的账号的
还有你的百度翻译的key,放出来可能被别人滥用( -
加上了,然后机器人给我发送这个
动态检测失败 Could not initialize class top.colter.mirai.plugin.bilibili.utils.ImgUtils
-
@fuyon 额,那这我也不知道了(可能java的绘图api在你电脑上有什么神奇的魔力不让它画
可以用文字模式或直接用bilibili helper( -
@colter23 草ww
-
此回复已被删除! -
您好 配置文件cookie上自动生成的是单引号 方便的话可以改一下,我被误导了[笑哭]
-
目前一直出现这个·问题:
2021-12-04 20:30:27 E/BilibiliDynamic: java.lang.Exception java.lang.Exception at top.colter.mirai.plugin.bilibili.InitKt.initTagid(Init.kt:54) at top.colter.mirai.plugin.bilibili.PluginMain.onEnable(PluginMain.kt:42) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:214) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.itxtech.mcl.Utility.bootMirai(Utility.java:83) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43) at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155) at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105) at org.mozilla.javascript.Context.call(Context.java:554) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522) at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105) at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126) at com.sun.proxy.$Proxy4.run(Unknown Source) at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106) at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176) at org.itxtech.mcl.Loader.tryCatching(Loader.java:145) at org.itxtech.mcl.Loader.start(Loader.java:176) at org.itxtech.mcl.Loader.main(Loader.java:68) >
我的配置文件难道有误嘛...
# 管理员 admin: '1691914478' # 推送模式 # 0: 文字推送 # 1: 图片推送 pushMode: 1 # 添加订阅时是否允许bot自动关注未关注的用户 autoFollow: true # Bot关注时保存的分组(最长16字符) followGroup: Bot关注 # 检测间隔(推荐15-30) 单位秒 interval: 15 # 图片推送模式用的字体, 详细请看readme font: Microsoft Yahei # cookie cookie: "" # 百度翻译 baiduTranslate: enable: false APP_ID: '' SECURITY_KEY: ''
注:cookie是在双引号内的,不过配置文件给的是单引号,给改过来了
环境:mcl安装器自动在目录下装的:jdk14 x64
-
@fuyon cookie问题,请退出重新登陆,重新获取cookie(获取后最好不要退出登陆
-
考虑直播艾特全体成员嘛
-
之后加。。。最近没时间
-