[Plum] 梅花娘 (报早晚安+智能点歌+一言+随机动漫壁纸+@聊天AI)
-
唱歌指令出现错误,还有艾特了机器人他没有反应,聊天api怎么更换??谢谢!
-
@kelaleaf 唱歌解决了,不能有中文路径,但是聊天我还是没有找到打开的地方,配置文件也没有注释
-
@kelaleaf 在 [Plum] 梅花娘 (报早晚安+智能点歌+一言+随机动漫壁纸+@聊天AI) 中说:
@kelaleaf 唱歌解决了,不能有中文路径,但是聊天我还是没有找到打开的地方,配置文件也没有注释
找到了,在plugins/plum/applicationConfig.json 中进行修改
AtFunction选项的enable为true开启聊天功能 -
@teeth 好的,非常感谢
-
出现了新问题,直接导致机器人崩溃,如下
2021-08-08 04:55:48 V/Bot.161461357: Event: BeforeImageUploadEvent(target=Group(1028779507), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByFile@2fafa208)
2021-08-08 05:00:48 V/Bot.161461357: Event: FriendMessagePreSendEvent(target=Friend(10310485), message=早安,2021年8月8日!●倒计时:
2021年高考已结束~
2020年考研已结束~
四六级考试已结束~●今日格言:
只有一个人可以决定我要做什么,那就是我自己。( There's only one person who's going to decide what I'm going to do and that's me. ))
2021-08-08 05:00:48 V/Bot.161461357: Friend(10310485) <- 早安,2021年8月8日!\n\n●倒计时:\n2021年高考已结束~\n2020年考研已结束~\n四六级考试已结束~\n\n●今日格言:\n只有一个人可以决定我要做什么,那就是我自己。( There's only one person who's going to decide what I'm going to do and that's me. )
2021-08-08 05:00:48 V/Bot.161461357: Event: FriendMessagePostSendEvent(target=Friend(10310485), message=早安,2021年8月8日!●倒计时:
2021年高考已结束~
2020年考研已结束~
四六级考试已结束~●今日格言:
只有一个人可以决定我要做什么,那就是我自己。( There's only one person who's going to decide what I'm going to do and that's me. ), exception=java.util.concurrent.CancellationException: MsfOfflineToken(uin=161461357, seq=3900983443, const=0), receipt=null)
2021-08-08 05:00:48 W/stderr: Exception in thread "Thread-1585" java.util.concurrent.CancellationException: MsfOfflineToken(uin=161461357, seq=3900983443, const=0)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.selector.SelectorNetworkHandler.sendAndExpect$suspendImpl(SelectorNetworkHandler.kt:108)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.selector.SelectorNetworkHandler.sendAndExpect(SelectorNetworkHandler.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.NetworkHandler.sendAndExpect(NetworkHandler.kt:175)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.NetworkHandler.sendAndExpect$default(NetworkHandler.kt:171)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.contact.SendMessageHandler.sendMessagePacket(SendMessageHandler.kt:137)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.contact.SendMessageHandlerKt.sendMessageImpl(SendMessageHandler.kt:331)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.contact.SendMessageHandlerKt.sendMessage(SendMessageHandler.kt:307)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.contact.AbstractUserKt.sendMessageImpl(AbstractUser.kt:210)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.contact.FriendImpl.sendMessage(FriendImpl.kt:93)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.contact.Friend$sendMessage$1.invoke(Friend.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.contact.Friend$sendMessage$1.invoke(Friend.kt)
2021-08-08 05:00:48 W/stderr: at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
2021-08-08 05:00:48 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2021-08-08 05:00:48 W/stderr: at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
2021-08-08 05:00:48 W/stderr: at net.mamoe.kjbb.internal.RunBlockingKt.$runSuspend$(RunBlocking.kt:18)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.contact.Friend.sendMessage(Friend.kt)
2021-08-08 05:00:48 W/stderr: at com.sakurawald.framework.MessageManager.sendMessageToQQFriend(MessageManager.java:94)2021-08-08 05:00:48 W/stderr: at com.sakurawald.framework.MessageManager.sendMessageToQQFriend(MessageManager.java:117)
2021-08-08 05:00:48 W/stderr: at com.sakurawald.framework.MessageManager.sendMessageToAllQQFriends(MessageManager.java:161)
2021-08-08 05:00:48 W/stderr: at com.sakurawald.timer.timers.DailySentenceTimer.sendStage(DailySentenceTimer.java:136)2021-08-08 05:00:48 W/stderr: at com.sakurawald.timer.TimerController.lambda$autoControlTimer$0(TimerController.java:22)
2021-08-08 05:00:48 W/stderr: at java.base/java.lang.Thread.run(Thread.java:829)
2021-08-08 05:00:48 W/stderr: Caused by: MsfOfflineToken(uin=161461357, seq=3900983443, const=0)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.protocol.packet.login.StatSvc$ReqMSFOffline.decode(StatSvc.kt:282)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.PacketCodecImpl.processBody(PacketCodec.kt:369)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$PacketDecodePipeline$2$1.invokeSuspend(NettyNetworkHandler.kt:183)
2021-08-08 05:00:48 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2021-08-08 05:00:48 W/stderr: Suppressed: java.util.concurrent.CancellationException: NetworkHandler closed
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.ExceptionsKt.CancellationException(Exceptions.kt:22)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.JobKt__JobKt.cancel(Job.kt:608)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.JobKt.cancel(Unknown Source)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.close(NetworkHandlerSupport.kt:54)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler.close(NettyNetworkHandler.kt:203)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.handler.selector.SelectorNetworkHandler.close(SelectorNetworkHandler.kt:90)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl.onEvent$closeNetwork(BotOfflineEventMonitor.kt:63)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl.onEvent(BotOfflineEventMonitor.kt:88)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl.access$onEvent(BotOfflineEventMonitor.kt:48)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl$attachJob$$inlined$subscribeAlways$default$1.invokeSuspend(EventChannelKotlinExtensions.kt:174)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl$attachJob$$inlined$subscribeAlways$default$1.invoke(EventChannelKotlinExtensions.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.network.components.BotOfflineEventMonitorImpl$attachJob$$inlined$subscribeAlways$default$1.invoke(EventChannelKotlinExtensions.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:432)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invokeSuspend(EventChannel.kt:146)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invokeSuspend(EventChannel.kt:146)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.event.EventChannel$filter$1$intercepted$thisIntercepted$1.invoke(EventChannel.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
2021-08-08 05:00:48 W/stderr: at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:154)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1)
2021-08-08 05:00:48 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:126)
2021-08-08 05:00:48 W/stderr: ... 6 more
2021-08-08 05:00:48 W/stderr: Caused by: [CIRCULAR REFERENCE: MsfOfflineToken(uin=161461357, seq=3900983443, const=0)]> -
@kelaleaf 好像是我账号冻结了的原因。。。。。
-
不是 我隔段时间就会出现这个 Bot is closed manually with exception: MsfOfflineToken
-
此回复已被删除! -
此回复已被删除! -
后台能看到发出消息但实际上没有发出消息是怎么回事?
-
@black 被屏蔽了,等
-
此回复已被删除! -
在群内使用唱歌功能出现 FATAL ERROR 导致程序直接崩溃
使用 Windows 11 x64,Mirai 的 JRE 库换为了 OPENJDK 11.0.12.7.1 x64(之前不更换加载到 silk4j 显示无动态链接库)
具体 LOG:
2021-08-12 16:35:11 V/Bot.1607089408: [夜半三更盼天明组(32)] Phantom Dominator(29) -> 唱歌 igallta
2021-08-12 16:35:11 I/Plum: [CommandSystem] Receive Msg -> {唱歌 igallta}
2021-08-12 16:35:11 I/Plum: [Permission] fromGroup = 392779472, fromQQ = 29, authority:4
2021-08-12 16:35:11 I/Plum: [SingSong] 收到唱歌指令,开始执行核心代码
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] Get Call History: user = 32
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] 判断当前时间的调用是否时间间隔合法: diff = 19, limit = 5
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] 更新调用历史: user = 3*2, calendar = java.util.GregorianCalendar[time=1628757311463,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Shanghai",offset=28800000,dstSavings=0,useDaylight=false,transitions=31,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2021,MONTH=7,WEEK_OF_YEAR=33,WEEK_OF_MONTH=2,DAY_OF_MONTH=12,DAY_OF_YEAR=224,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=35,SECOND=11,MILLISECOND=463,ZONE_OFFSET=28800000,DST_OFFSET=0]
2021-08-12 16:35:11 I/Plum: [SingSong] 用户输入的需要唱的歌曲: input_music_name = igallta
2021-08-12 16:35:11 I/Plum: [SingSong] input_music_name = igallta
2021-08-12 16:35:11 I/Plum: [SingSong] 尝试第1乐库: NeteaseMusic - API
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 搜索音乐列表 - 请求: music_name = igallta
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 搜索音乐列表 - 结果: Code = OK, Response = {"result":{"songs":[{"id":1811961337,"name":"Igallta","artists":[{"id":29791099,"name":"Se-U-Ra","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null}],"album":{"id":0,"name":"","artist":{"id":0,"name":"","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null},"publishTime":0,"size":0,"copyrightId":0,"status":0,"picId":109951165752947272,"mark":0},"duration":122176,"copyrightId":0,"status":0,"alias":[],"rtype":0,"ftype":0,"mvid":0,"fee":0,"rUrl":null,"mark":393216}],"hasMore":false,"songCount":1},"code":200}
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 获取的音乐信息(指定首) - 成功获取到指定首(第1首)的音乐的信息: SongInformation{music_Name='Igallta', music_ID=1811961337, music_Length=0, music_introduction='null', music_Page_URL='http://music.163.com/song/1811961337', author='null', music_File_URL='http://music.163.com/song/media/outer/url?id=1811961337.mp3', music_MID='null', img_URL='null', hash='null', sourceType='网易云音乐', summary='null'}
2021-08-12 16:35:11 I/Plum: [Download] 所要下载的文件: URL_path = http://music.163.com/song/media/outer/url?id=1811961337.mp3, fileLength = 62
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 获取到的SongInformation: SongInformation{music_Name='Igallta', music_ID=1811961337, music_Length=0, music_introduction='null', music_Page_URL='http://music.163.com/song/1811961337', author='null', music_File_URL='http://music.163.com/song/media/outer/url?id=1811961337.mp3', music_MID='null', img_URL='null', hash='null', sourceType='网易云音乐', summary='null'}
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 检测到所要下载音乐文件已存在,跳过下载: file_path = D:\Development\QiantanBot\plugins\Plum\voice-files\netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337
2021-08-12 16:35:11 I/Plum: [SendSystem] sendMusic() -> voice_file_name = netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337
2021-08-12 16:35:11 I/Plum: [SendSystem] Start MP3 to Silk: netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094) at pc=0x000000006d637ba2, pid=7628, tid=8144
JRE version: OpenJDK Runtime Environment Microsoft-25199 (11.0.12+7) (build 11.0.12+7)
Java VM: OpenJDK 64-Bit Server VM Microsoft-25199 (11.0.12+7, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
Problematic frame:
C [mirai_audio_lib_1628757276161.lib+0x37ba2]
No core dump will be written. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
D:\Development\QiantanBot\hs_err_pid7628.log
If you would like to submit a bug report, please visit:
https://github.com/microsoft/openjdk/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
-
此回复已被删除! -
早安功能无法使用,需要改配置文件吗?本人小白
-
此回复已被删除! -
为什么在plugins文件夹中删除这个插件并重启后插件功能还在?
-
大佬大佬!我今天发从“唱歌”几s后台就崩了,没有红字,都是文件夹多了个“hs_err_pid7076.log”的文件,求解!
-
此回复已被删除! -
请问运行时出现报错
java.lang.NullPointerException怎么解决?
今天刚整个服务器放上就这样了