@firefairy 现在正常能用,但是想恢复一下之前的内容,晚点看看cltool能不能救一下吧
Sanze2000 发布的最新帖子
-
RE: ChatLearning——让bot学会你的群聊
词库好像到一定大小就读不出来了?现在有个群的词库8.2M,但是check命令跟查看该群全部词库都只有一两条,在这个群也不会自动回复了。
-
RE: WordCloudPlugin 群词云生成器
@bic-potato 在 WordCloudPlugin 群词云生成器 中说:
使用命令
/WordCloud 本日词云
的时候报错:
2022-03-14 19:58:02 V/Bot. /WordCloud 本日词云
2022-03-14 19:58:02 W/WordCloudPlugin: Exception in executing command[mirai:source:[502291],[1446865950]]/WordCloud 本日词云
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invokeSuspend(CommandReflector.kt:329)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call$suspendImpl(CommandSignature.kt:88)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call(CommandSignature.kt)
at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:168)
at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt:130)
at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:125)
at chat-command-0.5.1.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86)
at chat-command-0.5.1.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain$onEnable$2$1.invokeSuspend(PluginMain.kt:69)
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)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at WordCloudPlugin-0.0.5.mirai.jar//com.kennycason.kumo.font.KumoFont.registerFont(KumoFont.java:57)
at WordCloudPlugin-0.0.5.mirai.jar//com.kennycason.kumo.font.KumoFont.buildAndRegisterFont(KumoFont.java:48)
at WordCloudPlugin-0.0.5.mirai.jar//com.kennycason.kumo.font.KumoFont.<init>(KumoFont.java:31)
at WordCloudPlugin-0.0.5.mirai.jar//com.github.WordCloudUtils.generateWordCloud(WordCloudUtils.kt:30)
at WordCloudPlugin-0.0.5.mirai.jar//com.github.WordCloudCommand.todayWordCloud(WordCloudCommand.kt:26)
... 26 more
系统为Ubuntu 20.0.4
,JRE为Adopt OpenJDK 11
请问是因为什么原因呢?遇到同样的问题,请问有解决办法吗?
-
RE: ChatLearning——让bot学会你的群聊
@Koreyoshi 发现是新版本安卓手机QQ8.9.3的更改,暂时不清楚是bug还是feature,新版本手机QQ回复中的at不再存在于实际发出的消息里了,要不要增加一下主动反击的触发条件?
-
RE: ChatLearning——让bot学会你的群聊
@Koreyoshi 试了一下还是不行,是管理员权限,不过刚才发现回复时再手动at一次(也就是消息里显示有两个at)就能正常触发删除了。
附上能触发删除的消息
[mirai:quote:[mirai:source:ids=[6140], internalIds=[453907914], from 2370684501 to 1046066517 at 1659509815], content=<not yet initialized>][mirai:at:2370684501] !d
现在好像回复默认填充的那个at只是显示,没有真的在消息里发送出去,或者消息构成变了?另外之前合并转发消息打不开,是mirai的问题,前天更新的2.12.1就正常了。