Petpet - 生成各种奇怪的图片
-
我觉得可以把资源文件打包到jar里然后用
.class.getResourceAsStream()
读取 -
@tsudzuki 已更新2.0
-
@157946a 谢谢!
-
希望关键词检测可以对应文件夹名称触发 比如 素材文件夹内 文件夹名为摸 (触发关键词 : 摸 @ xxx)
-
@18074669965 已更新,使用
2.2
-
@豹离SIU 现在更新了 2.2版本(
-
已更新
2.3
欢迎pr -
大佬,图片素材怎么下载呀
-
@hushaya github
-
@Dituon 不知道哪个地方是下载
-
此回复已被删除! -
-
好好好好好
-
已更新
2.4
-
把jar丢进plugins里,照片文件夹也丢进data里了,启动了一次mcl,但并没有生成配置文件,发pet和戳一戳也都没反应是为什么
-
@云恭雀123 有日志吗
-
@Dituon 没有
-
@云恭雀123 发一下启动日志
-
@Dituon [32m 22:38:39 [INFO] iTXTech Mirai Console Loader version 1.1.0-beta.1-982f9f4
[39m
[32m 22:38:39 [INFO] https://github.com/iTXTech/mirai-console-loader[39m
[32m 22:38:39 [INFO] This program is licensed under GNU AGPL v3[39m
[37m 22:38:39 [DEBUG] Loading script: announcement.js[39m
[37m 22:38:40 [DEBUG] Loading script: boot.js[39m
[37m 22:38:40 [DEBUG] Loading script: config.js[39m
[37m 22:38:40 [DEBUG] Loading script: oraclejdk.js[39m
[37m 22:38:40 [DEBUG] Loading script: repo.js[39m
[37m 22:38:40 [DEBUG] Loading script: updater.js[39m
[32m 22:38:40 [INFO] Fetching Mirai Console Loader Announcement...[39m
[32m 22:38:42 [INFO] Mirai Console Loader Announcement:[39m
[WARNING] 您目前使用的仓库源 gitee 将不再受到支持
[WARNING] 我们已经停止对 gitee 源的同步更新
[WARNING] 如果您依然使用此源, 则不会再受到我们的更新推送
[WARNING]
[WARNING] 详见
[WARNING]- https://mirai.mamoe.net/topic/1084/ [WARNING]
- https://github.com/project-mirai/mirai-repo-mirror
[WARNING]
[WARNING] Mamoe Technologies & iTX Technologies
[WARNING] 03/30/2022[32m 22:38:42 [INFO] Verifying "org.bouncycastle:bcprov-jdk15on" version 1.64[
39m
[32m 22:38:43 [INFO] Verifying "net.mamoe:mirai-console" version 2.11.0-M1[39m[32m 22:38:43 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.11.
0-M1[39m
[32m 22:38:44 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.11.0-M1[39
m
2022-06-06 22:38:45 I/main: Starting mirai-console...
2022-06-06 22:38:46 I/main: Backend: version 2.11.0-M1, built on 2022-03-08 20:3
4:54.
2022-06-06 22:38:46 I/main: Frontend Terminal: version 2.11.0-M1, provided by Ma
moe Technologies
2022-06-06 22:38:46 I/main: Welcome to visit https://mirai.mamoe.net/
2022-06-06 22:38:47 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.Static
LoggerBinder".
2022-06-06 22:38:47 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger imp
lementation
2022-06-06 22:38:47 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticL
oggerBinder for further details.
2022-06-06 22:38:47 W/JvmPlugin[SimpleTarot-1.0.4.jar]: Linked class com.alibaba
.druid.pool.DruidDataSource in aimplementation-1.0.mirai.jar but plugin not depe
nd on it.
2022-06-06 22:38:47 W/JvmPlugin[SimpleTarot-1.0.4.jar]: Class loading logic may
change in feature.
2022-06-06 22:38:47 W/Implementation: Linked class org.apache.log4j.Logger in Wo
rdCloudPlugin-0.0.5.mirai.jar but plugin not depend on it.
2022-06-06 22:38:47 W/Implementation: Class loading logic may change in feature.2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Implementation v1.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin bilibili-helper v1.4.132022-06-06 22:38:48 I/plugin: Successfully loaded plugin Chat Command v0.5.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin DrawMeme v1.0.3
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin HitHit v2.0.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin mirai-administrator v1.
0.7
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-htt
p v2.4.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin J Nudge Reply v1.0.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Loafers' Calender v1.3.
0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Lolicon v5.2.1
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin TimerTaskMsg v0.1.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin mirage-builder v2.0.1
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin 点歌插件 v1.1.7
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Molly v1.2.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Reporter v1.3.2
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin PatPat v2.0.1
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin PetPet v2.4
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin PluginVoodoo v1.5.0
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin Tarot v1.0.4
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin SkikoMirai v1.0.2
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin SteamHelper v1.0.2
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin ThrowIt-Mirai v1.2
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin WordCloudPlugin v0.0.5
2022-06-06 22:38:48 I/plugin: Successfully loaded plugin ZuanSprayer v1.0.0
2022-06-06 22:38:48 I/main: Prepared built-in commands: autoLogin, help, login,
logout, permission, status, stop
2022-06-06 22:38:48 I/Implementation: 前置插件加载完毕
2022-06-06 22:38:49 I/bilibili-helper: 如果要B站动态的截图内容,请修改 DynamicIn
fo.template, 添加 #screenshot
2022-06-06 22:38:49 I/bilibili-helper: 如果要B站专栏的截图内容,请修改 Article.t
emplate, 添加 #screenshot
2022-06-06 22:38:49 I/DrawMeme: Plugin loaded
2022-06-06 22:38:49 I/HitHit: 缓存已自动清理
2022-06-06 22:38:49 I/HitHit: 锤人插件已加载
2022-06-06 22:38:49 I/mirai-administrator: 机器人所有者 2213152630
2022-06-06 22:38:49 I/mirai-administrator: 发送上线通知请使用 /perm add g群号 xy
z.cssxsh.mirai.plugin.mirai-administrator:online.include 赋予权限
2022-06-06 22:38:49 I/mirai-administrator: ComparableService Registered [7]:
BlackListService: default-blacklist
ContentCensor: default-censor
FriendApprover: default-approver
GroupApprover: default-approver
MemberApprover: default-approver
MessageSourceHandler:
TimerService: cleaner, curfew-timer, online, status2022-06-06 22:38:49 I/Mirai HTTP API: ******************************************
2022-06-06 22:38:50 I/http adapter: >>> [http adapter] is listening at http://12
7.0.0.1:33111
2022-06-06 22:38:50 I/ws adapter: >>> [ws adapter] is listening at ws://127.0.0.
1:33111
2022-06-06 22:38:50 I/Mirai HTTP API: Http api server is running with verifyKey:
Alex1811
2022-06-06 22:38:50 I/Mirai HTTP API: adaptors: [http,ws]
2022-06-06 22:38:50 I/Mirai HTTP API: ******************************************
2022-06-06 22:38:50 I/J Nudge Reply: Plugin loaded
2022-06-06 22:38:50 I/Loafers' Calender: Plugin loaded
2022-06-06 22:38:50 I/Lolicon: Plugin loaded
2022-06-06 22:38:50 I/TimerTaskMsg: Plugin loaded
2022-06-06 22:38:50 I/TimerTaskMsg: forward......
2022-06-06 22:38:50 I/mirage-builder: MirageBuilder loaded
2022-06-06 22:38:54 I/点歌插件: 当前配置项:宽域AMR:true AMR自动大小:false
2022-06-06 22:38:54 I/点歌插件: 插件加载完毕!
2022-06-06 22:38:54 I/Molly: 茉莉云机器人加载完毕
2022-06-06 22:38:54 I/PatPat: 缓存已自动清理
2022-06-06 22:38:54 I/PatPat: 摸头插件已加载
2022-06-06 22:38:54 E/PetPet: java.lang.NoClassDefFoundError: net/mamoe/mirai/co
nsole/data/java/JavaAutoSavePluginConfig
java.lang.NoClassDefFoundError: net/mamoe/mirai/console/data/java/JavaAutoSavePl
uginConfig
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoad
er.java:150)
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524
)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
at java.base/java.security.AccessController.doPrivileged(AccessControlle
r.java:712)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.loadCla
ss(JvmPluginClassLoader.kt:243)
at petpet-2.4.jar//xmmt.dituon.plugin.Petpet.onEnable(Petpet.java:31)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnE
nable$mirai_console(JvmPluginInternal.kt:117)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.en
able(BuiltInJvmPluginLoaderImpl.kt:258)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.en
able(BuiltInJvmPluginLoaderImpl.kt:35)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(Jvm
PluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(Jvm
PluginLoader.kt:50)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManag
er.kt:173)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLo
adedPlugins$mirai_console(PluginManagerImpl.kt:181)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doS
tart$mirai_console(MiraiConsoleImplementationBridge.kt:224)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(Mi
raiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDa
emon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDa
emon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(Mira
iConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Dire
ctMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:79)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Dire
ctMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:22
6)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:169
2)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.j
ava:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:4
12)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:357
8)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.j
ava:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.j
ava:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdap
ter.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.j
ava:126)
at jdk.proxy1/jdk.proxy1.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101
)
at org.itxtech.mcl.Loader.start(Loader.java:156)
at org.itxtech.mcl.Loader.main(Loader.java:66)
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.console.data.java.J
avaAutoSavePluginConfig
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCla
ssLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(C
lassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.loadCla
ss(JvmPluginClassLoader.kt:258)
... 46 more2022-06-06 22:38:54 I/PluginVoodoo: VoodooPlugin loaded
2022-06-06 22:38:55 I/Tarot: Plugin loaded
2022-06-06 22:38:55 I/SkikoMirai: Plugin loaded
2022-06-06 22:38:55 I/SteamHelper: SteamHelper已就绪,数据刷新命令已经发出,会延
迟于插件启动,请稍后
2022-06-06 22:38:55 I/ThrowIt-Mirai: Plugin loaded
2022-06-06 22:38:55 I/WordCloudPlugin: WordCloudPlugin Plugin loaded
2022-06-06 22:38:55 I/ZuanSprayer: ZuanSprayer start
2022-06-06 22:38:55 I/ZuanSprayer: ZuanSprayer loaded
2022-06-06 22:38:55 I/main: 24 plugin(s) enabled.
2022-06-06 22:38:55 I/main: mirai-console started successfully.
2022-06-06 22:38:59 I/SteamHelper: 信息刷新线程执行完毕 -
@云恭雀123 NoClassDefFoundError