Code Monkey home page Code Monkey logo

complexbot's People

Contributors

dependabot[bot] avatar eritpchy avatar kenvix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

complexbot's Issues

掉线后不会自动重连

2020-09-13 20:13:55 I/Bot 123456789: Reconnected successfully in 0.0s
2020-09-13 20:13:55 I/Net 123456789: Syncing friend message history...
2020-09-13 20:13:55 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:13:55 W/Net 123456789: Network force offline: returnCode = -10008
2020-09-13 20:13:55 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:13:55 I/Bot 123456789: Reconnected successfully in 0.0s
2020-09-13 20:13:55 I/Net 123456789: Syncing friend message history...
2020-09-13 20:13:55 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:13:55 W/Net 123456789: Network force offline: returnCode = -10008
2020-09-13 20:13:55 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:13:56.168 [ERROR][DefaultDispatcher-worker-7: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1$invokeSuspend$$inlined$use$lambda$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:466)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2020-09-13 20:14:00 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:14:00 W/Net 123456789: Network force offline: returnCode = -10008
2020-09-13 20:14:00 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:14:00 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:14:00.592 [ERROR][DefaultDispatcher-worker-7: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1$invokeSuspend$$inlined$use$lambda$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:466)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2020-09-13 20:14:00 W/Net 123456789: Network force offline: returnCode = -10008
2020-09-13 20:14:00 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:14:00.640 [ERROR][DefaultDispatcher-worker-7: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1$invokeSuspend$$inlined$use$lambda$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:466)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2020-09-13 20:14:00 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:14:00 W/Net 123456789: Network force offline: returnCode = -10008
2020-09-13 20:14:00 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:14:00.700 [ERROR][DefaultDispatcher-worker-7: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1$invokeSuspend$$inlined$use$lambda$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:466)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2020-09-13 20:14:01 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:14:01.041 [ERROR][DefaultDispatcher-worker-2: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$startPacketReceiverJobOrKill$2$rawInput$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:88)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2020-09-13 20:14:05 V/Net 123456789: Send: MessageSvc.PbGetMsg
2020-09-13 20:14:05 E/Net 123456789: Exception in NetworkHandler
java.net.SocketException: Broken pipe (Write failed)
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.base/java.net.SocketOutputStream.write(Unknown Source)
at java.base/java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.base/java.io.BufferedOutputStream.flush(Unknown Source)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket$send$4.invokeSuspend(PlatformSocket.kt:52)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket$send$4.invoke(PlatformSocket.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket.send(PlatformSocket.kt:50)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$7.invokeSuspend(QQAndroidBotNetworkHandler.kt:654)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$7.invoke(QQAndroidBotNetworkHandler.kt)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.sendAndExpect(QQAndroidBotNetworkHandler.kt:679)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$1.invokeSuspend(QQAndroidBotNetworkHandler.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:55)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

2020-09-13 20:14:05 E/Net 123456789: Exception in NetworkHandler
java.net.SocketException: Broken pipe (Write failed)
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.base/java.net.SocketOutputStream.write(Unknown Source)
at java.base/java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.base/java.io.BufferedOutputStream.flush(Unknown Source)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket$send$4.invokeSuspend(PlatformSocket.kt:52)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket$send$4.invoke(PlatformSocket.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.qqandroid.utils.PlatformSocket.send(PlatformSocket.kt:50)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$7.invokeSuspend(QQAndroidBotNetworkHandler.kt:654)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$7.invoke(QQAndroidBotNetworkHandler.kt)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.sendAndExpect(QQAndroidBotNetworkHandler.kt:679)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$sendAndExpect$1.invokeSuspend(QQAndroidBotNetworkHandler.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:55)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

2020-09-13 20:14:22 I/Bot 123456789: Connection lost, retrying login
2020-09-13 20:14:22.760 [ERROR][DefaultDispatcher-worker-7: c.k.c.ComplexBotMiraiComponent] Mirai Exception on coroutineContext [com.kenvix.complexbot.ComplexBotMiraiComponent$$special$$inlined$CoroutineExceptionHandler$1@5b347086, CoroutineName(Mirai Bot), SupervisorJobImpl{Active}@1e36f584, Dispatchers.IO]
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.remove(Unknown Source)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invokeSuspend(BotImpl.kt:94)
at net.mamoe.mirai.qqandroid.BotImpl$offlineListener$1.invoke(BotImpl.kt)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invokeSuspend(subscriber.kt:271)
at net.mamoe.mirai.event.SubscriberKt__SubscriberKt$subscribeAlways$1.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:160)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:89)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:242)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$startHeartbeatJobOrKill$1$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:110)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Missing python module backend.ttypes

Python backend started
stdout
07:16:09
Version 1.0
stdout
07:16:09
Traceback (most recent call last):
stderr
07:16:09
File "main.py", line 6, in
stderr
07:16:09
import apiserver
stderr
07:16:09
File "/backend/apiserver.py", line 11, in
stderr
07:16:09
from backend.ttypes import TextClassificationResult, RPCException
stderr
07:16:09
ModuleNotFoundError: No module named 'backend.ttypes'

众多问题.

问题我都改到我的github上了, 参考https://github.com/eritpchy/ComplexBot
开发环境 macOS Catalina 10.15.6 + java 11
生产环境
OpenJDK 64-Bit Server VM 11.0.8+10 (Oracle Corporation)
PyBotBackend v0.5 @ Python 3.7.9
Platform: Linux | Kotlin 1.4.0

  1. 缺少文档
  2. System.getProperties()无效的, System.getProperty才行
  3. requirements依赖过多
  4. java启动backend时, com.kenvix.complexbot.ComplexBotDriver#loadBackend$KMiraiBot_main函数卡死, 类似的问题我在多个软件和操作系统上都碰到过, 不好解决, 最好单独运行
  5. 缺少sample配置文件

TODO List

  • 使得InspectorRule和Punishment可以提供设置选项,以为用户提供Rule和Punishment相关配置功能 #13
  • 增加 InspectorRule:用户自定义正则表达式匹配 #13

提个建议

加个无脑关键字拦截呗, 那个Ai拦截我就没见成功过~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.