已解决 编译好后的插件放到plugins里,运行一大堆红。
-
2021-06-27 11:39:03 I/Mirai: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭. 2021-06-27 11:39:03 I/Mirai: Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it. 2021-06-27 11:39:04 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2021-06-27 11:39:04 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2021-06-27 11:39:04 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2021-06-27 11:39:05 E/Bot.****: [AccountSecretsManager] Failed to load account secrets from local cache. Invalidating cache... net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException at net.mamoe.mirai.internal.utils.crypto.TEA.fail(TEA.kt:295) at net.mamoe.mirai.internal.utils.crypto.TEA.doOption$decrypt(TEA.kt:271) at net.mamoe.mirai.internal.utils.crypto.TEA.doOption(TEA.kt:291) at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt(TEA.kt:315) at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt$default(TEA.kt:314) at net.mamoe.mirai.internal.network.components.FileCacheAccountSecretsManager.getSecretsImpl(AccountSecretsManager.kt:96) at net.mamoe.mirai.internal.network.components.FileCacheAccountSecretsManager.getSecrets(AccountSecretsManager.kt:90) at net.mamoe.mirai.internal.network.components.CombinedAccountSecretsManager.getSecrets(AccountSecretsManager.kt:123) at net.mamoe.mirai.internal.network.components.AccountSecretsManagerKt.getSecretsOrCreate(AccountSecretsManager.kt:43) at net.mamoe.mirai.internal.network.components.BotClientHolderImpl.createClient(BotClientHolder.kt:37) at net.mamoe.mirai.internal.network.components.BotClientHolderImpl.access$createClient(BotClientHolder.kt:25) at net.mamoe.mirai.internal.network.components.BotClientHolderImpl$client$2.invoke(BotClientHolder.kt:29) at net.mamoe.mirai.internal.network.components.BotClientHolderImpl$client$2.invoke(BotClientHolder.kt:29) at net.mamoe.mirai.utils.LateinitMutableProperty.getValue(LateinitMutableProperty.kt:38) at net.mamoe.mirai.internal.network.components.BotClientHolderImpl.getClient(BotClientHolder.kt:29) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.getClient(SsoProcessor.kt:81) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:95) at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$StateConnecting$1.invokeSuspend(NettyNetworkHandler.kt:267) 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)
-
@卑微阿飞
你是指SLF4J那些吗
如果你是mcl启动的话,可以通过./mcl --update-package net.mamoe:mirai-slf4j-bridge --channel stable --type plugin
安装 mirai-slf4j-bridge 插件, 把SLF4J桥接到mirai logger -
是和这个帖子一样,两个bot用了同一个workDir的原因?
-
简单忽略就行