我是一个纯小白 第一次看到这个mirai 想要做一个QQ机器人
现在我运行好mcl后可以成功登录QQ看到别人给我发消息 但是我应该怎么给别人发消息 想要尝试装HTTP API 然后就一直报错 也不知道怎么配置屏幕截图 2021-08-06 170528.png
17:01:35 [INFO] iTXTech Mirai Console Loader version 1.2.2-60c67fb
17:01:35 [INFO] https://github.com/iTXTech/mirai-console-loader
17:01:35 [INFO] This program is licensed under GNU AGPL v3
17:01:37 [INFO] Fetching Mirai Console Loader Announcement...
17:01:37 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏
[mirai-console] 最近, 项目组发现了权限系统可能会被错误的提前加载导致的3rd权限系统无法正确加载
于是决定, 于 2.6 起, 超前访问权限系统将得到一个错误并中断插件加载, 请各开发者及时检查
影响范围: https://github.com/mamoe/mirai-console/pull/307
17:01:37 [INFO] Verifying "net.mamoe:mirai-console" v2.7-M2
17:01:38 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.7-M2
17:01:38 [INFO] Verifying "net.mamoe:mirai-core-all" v2.7-M2
17:01:38 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2
2021-08-06 17:01:41 I/main: Starting mirai-console...
2021-08-06 17:01:41 I/main: Backend: version 2.7-M2, built on 2021-07-06 21:43:31.
2021-08-06 17:01:41 I/main: Frontend Terminal: version 2.7-M2, provided by Mamoe Technologies
2021-08-06 17:01:41 I/main: Welcome to visit https://mirai.mamoe.net/
2021-08-06 17:01:41 I/plugin: Successfully loaded plugin MCL Addon
2021-08-06 17:01:41 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http
2021-08-06 17:01:41 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop
2021-08-06 17:01:41 I/MCL Addon: iTXTech MCL Version: 1.2.2-60c67fb
2021-08-06 17:01:42 I/Mirai HTTP API: ********************************************************
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2021-08-06 17:01:42 E/MahKtorAdapter[http]: java.net.BindException: Address already in use: bind
java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at io.ktor.network.sockets.ConnectUtilsJvmKt.bind(ConnectUtilsJvm.kt:32)
at io.ktor.network.sockets.TcpSocketBuilder.bind(TcpSocketBuilder.kt:46)
at io.ktor.network.sockets.TcpSocketBuilder.bind(TcpSocketBuilder.kt:30)
at io.ktor.network.sockets.TcpSocketBuilder.bind$default(TcpSocketBuilder.kt:29)
at io.ktor.server.cio.backend.HttpServerKt$httpServer$acceptJob$1.invokeSuspend(HttpServer.kt:46)
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)
2021-08-06 17:01:42 E/net.mamoe.mirai-api-http: kotlinx.coroutines.JobCancellationException: LazyStandaloneCoroutine is cancelling; job=LazyStandaloneCoroutine{Cancelling}@329548d0
kotlinx.coroutines.JobCancellationException: LazyStandaloneCoroutine is cancelling; job=LazyStandaloneCoroutine{Cancelling}@329548d0
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at io.ktor.network.sockets.ConnectUtilsJvmKt.bind(ConnectUtilsJvm.kt:32)
at io.ktor.network.sockets.TcpSocketBuilder.bind(TcpSocketBuilder.kt:46)
at io.ktor.network.sockets.TcpSocketBuilder.bind(TcpSocketBuilder.kt:30)
at io.ktor.network.sockets.TcpSocketBuilder.bind$default(TcpSocketBuilder.kt:29)
at io.ktor.server.cio.backend.HttpServerKt$httpServer$acceptJob$1.invokeSuspend(HttpServer.kt:46)
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)
2021-08-06 17:01:42 I/main: 2 plugin(s) enabled.
2021-08-06 17:01:42 I/Mirai: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.
2021-08-06 17:01:42 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-08-06 17:01:42 I/main: Auto-login 3076149315
2021-08-06 17:01:44 I/Bot.3076149315: [AccountSecretsManager] Loaded account secrets from local cache.
2021-08-06 17:01:45 I/Bot.3076149315: [AccountSecretsManager] Saved account secrets to local cache for fast login.
2021-08-06 17:01:45 I/Bot.3076149315: Login successful.
2021-08-06 17:01:45 V/Bot.3076149315: Event: BotOnlineEvent(bot=Bot(3076149315))
2021-08-06 17:01:45 I/Bot.3076149315: Bot login successful.
2021-08-06 17:01:45 I/main: mirai-console started successfully.
2021-08-06 17:06:04 V/Bot.3076149315: Event: Force(bot=Bot(3076149315), title=下线通知, message=你的帐号于17:06在另一台Android手机登录了QQ。如非本人操作,则密码可能已泄露,建议前往http://aq.qq.com/修改密码或紧急冻结帐号。)
2021-08-06 17:06:04 W/Bot.3076149315: Connection occupied by another android device: 你的帐号于17:06在另一台Android手机登录了QQ。如非本人操作,则密码可能已泄露,建议前 往http://aq.qq.com/修改密码或紧急冻结帐号。
2021-08-06 17:06:05 I/Bot.3076149315: Login successful
2021-08-06 17:06:05 I/Bot.3076149315: [AccountSecretsManager] Saved account secrets to local cache for fast login.
2021-08-06 17:06:05 I/Bot.3076149315: Login successful.
2021-08-06 17:06:05 V/Bot.3076149315: Event: BotOnlineEvent(bot=Bot(3076149315))
2021-08-06 17:06:05 V/Bot.3076149315: Event: BotReloginEvent(bot=Bot(3076149315), cause=null)
2021-08-06 17:06:05 I/Bot.3076149315: Reconnected successfully in 1.538s.
2021-08-06 17:06:06 V/Bot.3076149315: Event: Force(bot=Bot(3076149315), title=下线通知, message=你的帐号于17:06在另一台Android手机登录了QQ。如非本人操作,则密码可能已泄露,建议前往http://aq.qq.com/修改密码或紧急冻结帐号。)
2021-08-06 17:06:06 W/Bot.3076149315: Connection occupied by another android device: 你的帐号于17:06在另一台Android手机登录了QQ。如非本人操作,则密码可能已泄露,建议前 往http://aq.qq.com/修改密码或紧急冻结帐号。
2021-08-06 17:06:06 I/Bot.3076149315: Login successful
2021-08-06 17:06:06 I/Bot.3076149315: [AccountSecretsManager] Saved account secrets to local cache for fast login.
2021-08-06 17:06:06 I/Bot.3076149315: Login successful.
2021-08-06 17:06:06 V/Bot.3076149315: Event: BotOnlineEvent(bot=Bot(3076149315))
2021-08-06 17:06:06 V/Bot.3076149315: Event: BotReloginEvent(bot=Bot(3076149315), cause=null)
2021-08-06 17:06:06 I/Bot.3076149315: Reconnected successfully in 0.473s.
Karlatemp created this issue in
mamoe/mirai-console
closed
Ensure that the PermissionService is loaded correctly
#307