[Mirai-Native] 词云插件
-
@mr-喜 每天选出几个权重比较高的保存下来就好了
-
@edgestar2020 不妨试一下新版本
-
@mr-喜 好的,辛苦大佬了
-
既然是.net的话用.net core能否创建Linux下的动态链接库从而可以在Linux运行?
-
@rainchan 其实应该和插件本身关系不大,主要是依赖于Mirai-Native。可能到时候会去学怎么做mirai的原生插件吧,说白了放不下原来酷Q的开发习惯
-
问一个Mirai-Native的配置问题
https://github.com/iTXTech/mirai-native/wiki
哪里可以获取到libraries文件夹下的依赖??
已经懵了,现在非常想念coolq -
@bilibili-initial-heart 这些是CQHttp要用的,可以从旧的酷Q文件里找到。如果你不需要CQHttp的话,可以忽略这些文件
-
@mr-喜 谢谢!主要是因为一直报错来着......
我再看下吧 -
一直有这个报错,但是程序貌似能跑起来,这重要吗
哇,看到java的报错就头疼
2021-09-04 21:44:48 E/MiraiNative: java.lang.NoClassDefFoundError: net/mamoe/mirai/event/Listener$ConcurrencyKind
java.lang.NoClassDefFoundError: net/mamoe/mirai/event/Listener$ConcurrencyKind
at org.itxtech.mirainative.manager.EventManager.registerEvents(EventManager.kt:264)
at org.itxtech.mirainative.MiraiNative.onEnable(MiraiNative.kt:169)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:208)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68)
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.event.Listener$ConcurrencyKind
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass$mirai_console(JvmPluginClassLoader.kt:110)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass(JvmPluginClassLoader.kt:51)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 43 more -
顺便,配置应该放在哪里?
Mirai-Native啥都不生成,全都是手动建,头皮发麻
还是我这Mirai-Native没跑起来(汗) -
@bilibili-initial-heart 你把
mirai-native.jar
放到根目录下的plugin
文件夹里面就可以了, 之后启动mirai, 不需要上号, 会在data\MiraiNative
下新建目录, 在这个里面的plugin
文件夹里面放插件, 之后再重启mirai, 就会在data\MiraiNative\data\
下生成这个插件的文件夹,里面放需要的配置文件就可以了。我记着是这么个流程 -
关于Linux上运行mirai-native插件:https://github.com/w4123/MiraiNative-CrossPlatform
-
@snowmoonss 然而大部分的插件根本没有编译linux版本……
-
感谢楼主分享
-
@orisland 确实,目前在用的mirai-native插件只有dice……
-
你好,问一下,出现如下乱码怎么办?
2021-09-15 04:43:19 I/MiraiNative: [水银词云机 璇嶄簯鐢熸晥] 鍏卞紑鍚簡 1 涓兢 -
@huangadam ???还有这种事,不过看着像插件启动时提示开启了几个群,试一下功能正不正常吧
-
@mr-喜 大概率是代码页错误
对了,能够开启所有群吗 -
@bilibili-initial-heart 只能一个一个开哦(<ゝω·)☆Kira~
-
@mr-喜 我统计了一下,我这里加了几十个群大部分都要开,考虑给个配置项吗
或者交mirai权限系统管理