@cssxsh 啊发现了是api-http插件重复了,更新之后旧文件没有删除。谢谢大佬,问题解决了
Shirone 发布的最新帖子
-
RE: 运行MCL时出现错误,Failed to init MiraiConsole
-
运行MCL时出现错误,Failed to init MiraiConsole
今天发现其中一个包提示更新。
于是使用power shell执行了./mcl -u指令
之后出现了错误,在删除config文件重新生成,并修改升级 mirai 至 2.13.0(-RC/-RC2), 使用新的短信验证方法解决设备验证文章中提到的config后依旧没有解决问题,以下是错误代码2022-11-16 22:58:51 I/main: Backend: version 2.13.0, built on 2022-11-01 10:47:11. 2022-11-16 22:58:51 I/main: Frontend Terminal: version 2.13.0, provided by Mamoe Technologies 2022-11-16 22:58:51 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-11-16 22:58:51 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-11-16 22:58:51 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-11-16 22:58:51 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.6.2 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.6.2 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin indi.eiriksgata.rulateday-dice v0.0.1 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin MCL Addon v2.1.1 2022-11-16 22:58:52 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-11-16 22:58:52 I/Mirai HTTP API: ******************************************************** 2022-11-16 22:58:52 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-11-16 22:58:52 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-11-16 22:58:52 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-11-16 22:58:52 I/http adapter: >>> [http adapter] is listening at http://localhost:23456 2022-11-16 22:58:52 I/ws adapter: >>> [ws adapter] is listening at ws://localhost:23456 2022-11-16 22:58:52 I/Mirai HTTP API: Http api server is running with verifyKey: 519051785022 2022-11-16 22:58:52 I/Mirai HTTP API: adaptors: [http,ws] 2022-11-16 22:58:52 I/Mirai HTTP API: ******************************************************** 2022-11-16 22:58:52 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while enabling net.mamoe.mirai-api-http at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:311) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:175) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:336) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:508) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.itxtech.mcl.Utility.bootJars(Utility.java:86) at org.itxtech.mcl.Utility.bootJars(Utility.java:76) at org.itxtech.mcl.Utility.bootMirai(Utility.java:98) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:196) at org.itxtech.mcl.Loader.main(Loader.java:84) Caused by: net.mamoe.mirai.console.permission.PermissionRegistryConflictException: Conflicting Permission registry. new: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>)), existing: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>)) at net.mamoe.mirai.console.internal.permission.AbstractConcurrentPermissionService.register(AbstractConcurrentPermissionService.kt:29) at net.mamoe.mirai.console.permission.PermissionService.register$default(PermissionService.kt:101) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal$parentPermission$2.invoke(JvmPluginInternal.kt:52) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal$parentPermission$2.invoke(JvmPluginInternal.kt:51) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.getParentPermission(JvmPluginInternal.kt:51) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:126) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:305) ... 23 more
mirai版本为2.13.0
操作系统为WIN10
java信息:
openjdk version "17.0.4.1" 2022-08-12
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing) -
RE: 【TheresaBot】Pixiv日榜 涩图推送 搜索原图 词云 谁是卧底 Web界面
大佬你好,我这边连不上mcl console一直提示指定的文件不存在,只修改过botsetting,appsettings.Production.json的配置也没啥问题..
LOG:
2022-09-30 14:52:02,150 [7] ERROR RollingLog [(null)] - 连接到mirai-console失败
System.IO.FileNotFoundException: 指定的文件不存在。
at Mirai.CSharp.HttpApi.Extensions.ApiResponseExtensions.AsApiRespAsync(Task`1 responseTask, CancellationToken token)
at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
at Theresa3rd_Bot.Util.MiraiHelper.ConnectMirai() in D:\project\Theresa3rd-Bot\Theresa3rd-Bot\Util\MiraiHelper.cs:line 50 -
如何给予一个插件指令权限
例如这个骰娘插件
我想把开启和关闭的指令只允许管理员使用
但是无论使用chat command还是luckperm都不管用,bot依然会响应指令
luckperm里我是在default组和所有用户下面全都设置了骰娘插件.*的false,可是还是没有用,新建一个组设置骰娘插件.*的true也没有用
想请教一下大佬们怎么解决这个。。