BlomeSummer-聊天|点歌|简单的经济类游戏
-
项目地址:gitee
提供一些简单的功能:
打劫|XX(这个写出来可能会被和谐,自己去配置文件查)|猜数字
小爱同学聊天,唱歌,点歌
90%指令、回复可以自定义
指令列表:
#XX 值:类似于猜拳,30%胜率,赢则获得输入值的一倍货币(没有输入值默认为10)
#签到:这个不用解释了吧,第一个到第三个签到的会有额外收入
#打劫@群成员:随机夺取对方50~100的货币,有1/3的几率失败(即被对方夺走50~100货币)
#转账@群成员 值:需要解释吗?完全不需要(不输入值则默认为10)
#查询@群成员:查询对方的货币值,没有@群成员默认为自己
#猜数字 值:第一次发送为开启猜数字,第二次发送为参与,正确获得一定货币,错误扣除一定货币
#壁纸#来点好康的
#来点小姐姐===================
#点歌 名字:以卡片形式发送歌曲
#唱歌 名字:以语音消息的方式发送歌曲名字后面添加平台可以指定平台点歌(网易云或QQ音乐)
如:
点歌 晴天 QQ音乐
点歌 错位时空 网易云音乐===================
以后可能会添加的功能:
语音转文字(
他喵的没有好听的语音转文字API,不然早写出来了)部分纸牌游戏
占卜类
天气查询(因为用的小爱同学引擎,所以直接@机器人问就行,算是变相实现了)疫情状况
巴拉巴拉巴拉巴拉
===================
直接@机器人会被定义为与机器人聊天,可能会回复语音或者文字(因为用的小爱同学引擎,所以部分小爱同学提供的功能也是可以用的)
写这个插件的目的是想学JAVA,所以绝大多数代码都是JAVA原生代码
屎山代码,然后又完全不想重构
部分功能基于API,所以API失效则功能也不可用
自建API中===================
更新内容:
ffmpeg路径问题
更多的图片(涩图?bushi)
某些功能限制某个时间点后可用,并且使用会扣除相应的经济
添加QQ音乐点歌===================
使用的API:
言溪API
御坂API
糖豆子API
有道翻译朗读API
韩小韩API
独角兽API===================
PS:插件更新后可能需要删除原来的配置文件
如果链接用不了请直接帖子下回复,一般24小时内恢复插件已不再更新,有BUG可以联系修复,准备去写一些简单的插件
-
试了一下,感觉xx胜率不大对,赢的特别多,然后可能是我操作问题配置文件修改了以后重开也不生效
-
2022-05-08 16:13:54 W/stderr: java.io.IOException: Cannot run program "null/ffmpeg.exe": CreateProcess error=2, 系统找不到指定的文件。
2022-05-08 16:13:54 W/stderr: at java.base/java.lang.ProcessBuilder.start(Unknown Source)
2022-05-08 16:13:54 W/stderr: at java.base/java.lang.ProcessBuilder.start(Unknown Source)
2022-05-08 16:13:54 W/stderr: at org.example.function.ApiUse.toAmr(ApiUse.java:217)
2022-05-08 16:13:54 W/stderr: at org.example.function.ApiUse.getAudios(ApiUse.java:185)
2022-05-08 16:13:54 W/stderr: at org.example.blomeSummer.MessageChainHanding.messageChainHanding(MessageChainHanding.java:103)
2022-05-08 16:13:54 W/stderr: at org.example.BlomeSummer.lambda$onEnable$0(BlomeSummer.java:46)
2022-05-08 16:13:54 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
2022-05-08 16:13:54 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
2022-05-08 16:13:54 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-05-08 16:13:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-05-08 16:13:54 W/stderr: Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。
2022-05-08 16:13:54 W/stderr: at java.base/java.lang.ProcessImpl.create(Native Method)
2022-05-08 16:13:54 W/stderr: at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
2022-05-08 16:13:54 W/stderr: at java.base/java.lang.ProcessImpl.start(Unknown Source)
2022-05-08 16:13:54 W/stderr: ... 19 more
2022-05-08 16:13:54 E/main: Exception in coroutine <unnamed>
java.io.FileNotFoundException: C:\Users\Administrator\Desktop\mirai2\BlomeConfig\Temp\Over.amr (系统找不到指定的文件。)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(Unknown Source)
at java.base/java.io.RandomAccessFile.<init>(Unknown Source)
at java.base/java.io.RandomAccessFile.<init>(Unknown Source)
at net.mamoe.mirai.utils.ExternalResource$Companion.create(ExternalResource.kt:180)
at net.mamoe.mirai.utils.ExternalResource$Companion.create$default(ExternalResource.kt:178)
at net.mamoe.mirai.utils.ExternalResource$Companion.create(ExternalResource.kt)
at net.mamoe.mirai.utils.ExternalResource.create(ExternalResource.kt)
at org.example.blomeSummer.MessageChainHanding.messageChainHanding(MessageChainHanding.java:107)
at org.example.BlomeSummer.lambda$onEnable$0(BlomeSummer.java:46)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
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)
怎么回事啊大佬 -
@hhhh FFMPEG路径没有设置好,等过两天我再更新一下
-
@WhiSD 这里的胜率设置不了,默认的胜率是1/2还是1/3来着,只能设置指令,下次更新再加入胜率
-
@Huai_yu 好的大佬😚
-
大佬请问配置文件在哪里呢,我这里出了一些bug一些功能不好使了想重置一下
-
@zzz422688251 机器人根目录,BlomeConfig
-
@Huai_yu 感谢大佬
-
2022-07-08 11:01:11 W/stderr: java.io.IOException: Cannot run program "C:/Program Files/ffmpeg-5.0.1/bin/ffmpeg.exe": CreateProcess error=2, 系统找不到指定的文件。 2022-07-08 11:01:11 W/stderr: at java.base/java.lang.ProcessBuilder.start(Unknown Source) 2022-07-08 11:01:11 W/stderr: at java.base/java.lang.ProcessBuilder.start(Unknown Source) 2022-07-08 11:01:11 W/stderr: at BlomeSummer-1.6.jar//org.example.function.ApiUse.toAmr(ApiUse.java:246) 2022-07-08 11:01:11 W/stderr: at BlomeSummer-1.6.jar//org.example.function.ApiUse.getAudios(ApiUse.java:210) 2022-07-08 11:01:11 W/stderr: at BlomeSummer-1.6.jar//org.example.blomeSummer.MessageChainHanding.messageChainHanding(MessageChainHanding.java:147) 2022-07-08 11:01:11 W/stderr: at BlomeSummer-1.6.jar//org.example.BlomeSummer.lambda$onEnable$0(BlomeSummer.java:44) 2022-07-08 11:01:11 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) 2022-07-08 11:01:11 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) 2022-07-08 11:01:11 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) 2022-07-08 11:01:11 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) 2022-07-08 11:01:11 W/stderr: Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。 2022-07-08 11:01:11 W/stderr: at java.base/java.lang.ProcessImpl.create(Native Method) 2022-07-08 11:01:11 W/stderr: at java.base/java.lang.ProcessImpl.<init>(Unknown Source) 2022-07-08 11:01:11 W/stderr: at java.base/java.lang.ProcessImpl.start(Unknown Source) 2022-07-08 11:01:11 W/stderr: ... 19 more 2022-07-08 11:01:11 W/Bot.1781649904: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 1781649904.EventDispatcher' java.io.FileNotFoundException: E:\mcl-2.1.0\BlomeConfig\Temp\Over.amr (系统找不到指定的文件。) at java.base/java.io.RandomAccessFile.open0(Native Method) at java.base/java.io.RandomAccessFile.open(Unknown Source) at java.base/java.io.RandomAccessFile.<init>(Unknown Source) at java.base/java.io.RandomAccessFile.<init>(Unknown Source) at net.mamoe.mirai.utils.ExternalResource$Companion.create(ExternalResource.kt:258) at net.mamoe.mirai.utils.ExternalResource$Companion.create$default(ExternalResource.kt:256) at net.mamoe.mirai.utils.ExternalResource$Companion.create(ExternalResource.kt) at net.mamoe.mirai.utils.ExternalResource.create(ExternalResource.kt) at BlomeSummer-1.6.jar//org.example.blomeSummer.MessageChainHanding.messageChainHanding(MessageChainHanding.java:151) at BlomeSummer-1.6.jar//org.example.BlomeSummer.lambda$onEnable$0(BlomeSummer.java:44) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
输入唱歌命令后会有这个报错,请问是什么情况
-
-
大佬打开config文件的中文内容全部变成乱码怎么办,idea什么都试过转不回来呜呜呜
-
@Huai_yu 好大量的流操作,看麻了。
-
gitee被和谐了:(
-
佬,再发个下载链接吧,gtee寄了
-
加载好了,然后呢,怎么用
-
@hhhh 这个是ffmpeg没有获取到,然后手动填写的路径也不对
-
@zyyan 没有报错就是被风控了
-
@茶色cha 直接解压插件把配置文件复制出来就好
-
@SongYu_ @3487693212 已经没有再维护了,还是要的话可以私我去找一下