Open HYLZ-2019 opened 2 years ago
你的环境?
Mirai, 使用./mcl启动,config.json如下:
{
"module_packages": [
"mcl:org.itxtech.mcl.module.builtin"
],
"mirai_repo": "https://repo.itxtech.org",
"maven_repo": [
"https://maven.aliyun.com/repository/public"
],
"packages": {
"net.mamoe:mirai-console": {
"channel": "stable",
"version": "2.12.1",
"type": "libs",
"versionLocked": false
},
"net.mamoe:mirai-console-terminal": {
"channel": "stable",
"version": "2.12.1",
"type": "libs",
"versionLocked": false
},
"net.mamoe:mirai-core-all": {
"channel": "stable",
"version": "2.12.1",
"type": "libs",
"versionLocked": false
},
"org.itxtech:mcl-addon": {
"channel": "c2001",
"version": "2.0.2",
"type": "plugins",
"versionLocked": false
},
"net.mamoe:mirai-api-http": {
"channel": "stable-v2","version": "2.5.2",
"type": "plugins",
"versionLocked": false
},
"net.mamoe:chat-command": {
"channel": "stable",
"version": "0.5.1",
"type": "plugins",
"versionLocked": false
}
},
"archiveSuffix": [
".zip",
".mirai2.jar",
".mirai.jar",
"-all.jar",
".jar"
],
"disabled_modules": [],
"proxy": "",
"log_level": 1,
"modules_props": {}
}
使用:
java -cp "./libs/*" net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
启动后,仍然报错:
2022-09-09 01:11:03 W/Bot.(群号): An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot (群号).EventDispatcher'
org.mozilla.javascript.EvaluatorException: Can't find method org.itxtech.miraijs.libs.KotlinCoroutineLib$DeferredJsImpl.await(). (importOkHttpLib#63)
Java版本:
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode, sharing)
(睡觉去也,明天再回复,感谢您的帮助)
我的代码:
运行时报错:
请大佬赐教orz