Weibo Helper 一个简单的将微博转发到QQ的插件
-
@agni-bumi 你好,建议阅读《提问的智慧》
不带日志那只能猜咯,控制台有发送的话就是tx风控,没有的话检查是否可以在聊天环境执行指令
如果你没有配置过权限的话那排除权限系统问题,配置过自行查询
记得仔细看readme.md -
@agni-bumi
注意这个功能对应的权限id是用来关闭功能的,不是开启 -
没有关闭过该功能,其他功能正常;
在新群发送链接,控制台输出:
2021-09-06 01:37:32 V/Bot.2240648902: [t0ry、trust、BUMI(638096150)] BUMI(1589525441) -> https://weibo.com/3861753145/KwJmUkANa
这是被风控的状态吗私聊机器人:
2021-09-06 01:34:27 V/Bot.2240648902: BUMI(1589525441) -> https://weibo.com/3861753145/KwJmUkANa 2021-09-06 01:34:27 E/weibo-helper: Exception in coroutine WeiboSubscriber of weibo-helper java.lang.ClassCastException: class net.mamoe.mirai.internal.contact.FriendImpl cannot be cast to class net.mamoe.mirai.contact.Group (net.mamoe.mirai.internal.contact.FriendImpl and net.mamoe.mirai.contact.Group are in unnamed module of loader 'app') at xyz.cssxsh.mirai.plugin.WeiboListener$start$1$1.invokeSuspend(WeiboListener.kt:32) at xyz.cssxsh.mirai.plugin.WeiboListener$start$1$1.invoke(WeiboListener.kt) at xyz.cssxsh.mirai.plugin.WeiboListener$start$1$1.invoke(WeiboListener.kt) at net.mamoe.mirai.event.MessageSubscribersBuilder$findingReply$1.invokeSuspend(MessageSubscribersBuilder.kt:428) at net.mamoe.mirai.event.MessageSubscribersBuilder$findingReply$1.invoke(MessageSubscribersBuilder.kt) at net.mamoe.mirai.event.MessageSubscribersBuilder$findingReply$1.invoke(MessageSubscribersBuilder.kt) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:250) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:432) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50) at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:160) at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1) at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:126) 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)
-
@agni-bumi
这个私聊的报错是 出现在最新的 1.2.3 吗 -
@cssxsh 是1.2.0的
-
我直接把整个文件夹复制到服务器运行几天了,今天发现不能发图片(论坛看到都有这问题),当时重启后,插件就报错了
2021-09-10 02:58:18 I/MCL Addon: iTXTech MCL Version: 1.2.2-60c67fb 2021-09-10 02:58:18 E/weibo-helper: net.mamoe.yamlkt.YamlDecodingException: There must be a COLON between class key and value but found STRING for 'WeiboHelperSettings' contact: 1589525441 ^ at line 2, column 9 net.mamoe.yamlkt.YamlDecodingException: There must be a COLON between class key and value but found STRING for 'WeiboHelperSettings' contact: 1589525441 ^ at line 2, column 9 at net.mamoe.yamlkt.internal.YamlUtils__ContextualExceptionKt.contextualDecodingException(ContextualException.kt:154) at net.mamoe.yamlkt.internal.YamlUtils.contextualDecodingException(Unknown Source) at net.mamoe.yamlkt.internal.YamlUtils__ContextualExceptionKt.contextualDecodingException$default(ContextualException.kt:128) at net.mamoe.yamlkt.internal.YamlUtils.contextualDecodingException$default(Unknown Source) at net.mamoe.yamlkt.internal.YamlDecoder$BlockClassDecoder.decodeElementIndex(YamlDecoder.kt:285) at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:75) at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:47) at net.mamoe.yamlkt.Yaml.decodeFromString(Yaml.kt:162) at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.load(MultiFilePluginDataStorageImpl.kt:39) at net.mamoe.mirai.console.plugin.jvm.AbstractJvmPlugin.reloadPluginConfig(AbstractJvmPlugin.kt:58) at xyz.cssxsh.mirai.plugin.WeiboHelperPlugin.onEnable(WeiboHelperPlugin.kt:26) 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)
-
@agni-bumi 在 Weibo Helper 一个简单的将微博转发到QQ的插件 中说:
WeiboHelperSettings
WeiboHelperSettings.yml 的内容有问题
是不是以非正常手段关闭了程序,
或者对其进行了不正常的编辑操作 -
碰到个神秘bug,bot会莫名其妙发一条未订阅的用户的微博,但是这条微博又有着与已订阅用户相关的内容……是把点赞的也算进了吗
另外就是,有时候会发一条远古微博到群里……被调侃成火星bot了……
以上问题在控制台界面都没有什么异常现象,问题太神秘了,而且持续有段时间了,也没发现触发这两个问题的规律…… -
@snowmoonss
光口头描述毫无意义,至少说一下微博账户和具体的微博链接/内容第二点,可以尝试吧历史记录保存时间修改得更长一些
-
@cssxsh 比如说这条:
https://weibo.com/5253615020/KwVWPiy7q
我订阅的是@最终幻想14 但我没看到@最终幻想14 有转发过这条,看这消息样式也不是转发的…… -
@snowmoonss
经测试,的确会把点赞消息也记录 -
@cssxsh ‘E/weibo-helper’这个是在说e盘的位置吗?
我把旧版没问题的内容复制到WeiboHelperSettings.yml里还是不行;
更新插件是直接替换jar是吗?
此前一直右上角关闭面板是非正常关闭吗,怎么只有这一次出现不可逆的故障了;
除了这个插件,bili的也是同样的问题😥 -
-
@cssxsh 所以现在只能重装解决问题吗
-
@agni-bumi
不要使用记事本作为编辑配置文件 -
你好,我这手机聊天输入/wlogin之后就丢一堆异常出来...
2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: WeiboClient Ignore io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 2021-09-17 08:38:16 W/weibo-helper: io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 io.ktor.utils.io.charsets.MalformedInputException: Input length = 1 at io.ktor.utils.io.charsets.CharsetJVMKt.throwExceptionWrapped(CharsetJVM.kt:325) at io.ktor.utils.io.charsets.CharsetJVMKt.decode(CharsetJVM.kt:199) at io.ktor.utils.io.charsets.EncodingKt.decode(Encoding.kt:103) at io.ktor.utils.io.charsets.EncodingKt.decode$default(Encoding.kt:101) at io.ktor.client.statement.HttpStatementKt.readText(HttpStatement.kt:173) at io.ktor.client.statement.HttpStatementKt$readText$1.invokeSuspend(HttpStatement.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191) at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147) at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15) at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) 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) 2021-09-17 08:38:16 W/weibo-helper: 发送消息失败, io.ktor.utils.io.charsets.MalformedInputException: Input length = 1
-
@ashmob
傻逼微博少传了一些信息,导致机器人解析错误,
v1.2.7 尝试修复 -
@cssxsh 试了下,原来是默认的7天,改成30天后会拽一条30天前的微博发出来……
-
c佬的插件,我全都用(嘿嘿:D)
-
@cssxsh 这个登录能持续几天?我这使用上1-2天就得重新登录了