MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Weibo Helper 一个简单的将微博转发到QQ的插件

    插件发布
    微博 weibo
    36
    140
    20287
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bilibili-Initial-heart
      Bilibili-Initial-heart @agni-bumi last edited by

      @agni-bumi 你好,建议阅读《提问的智慧》
      不带日志那只能猜咯,控制台有发送的话就是tx风控,没有的话检查是否可以在聊天环境执行指令
      如果你没有配置过权限的话那排除权限系统问题,配置过自行查询
      记得仔细看readme.md

      1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh @agni-bumi last edited by

        @agni-bumi
        注意这个功能对应的权限id是用来关闭功能的,不是开启

        1 Reply Last reply Reply Quote 0
        • A
          agni-bumi last edited by cssxsh

          没有关闭过该功能,其他功能正常;
          在新群发送链接,控制台输出:
          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)
          
          cssxsh 1 Reply Last reply Reply Quote 0
          • cssxsh
            cssxsh @agni-bumi last edited by

            @agni-bumi
            这个私聊的报错是 出现在最新的 1.2.3 吗

            A 1 Reply Last reply Reply Quote 0
            • A
              agni-bumi @cssxsh last edited by

              @cssxsh 是1.2.0的

              1 Reply Last reply Reply Quote 0
              • A
                agni-bumi last edited by cssxsh

                我直接把整个文件夹复制到服务器运行几天了,今天发现不能发图片(论坛看到都有这问题),当时重启后,插件就报错了

                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)
                cssxsh 1 Reply Last reply Reply Quote 0
                • cssxsh
                  cssxsh @agni-bumi last edited by cssxsh

                  @agni-bumi 在 Weibo Helper 一个简单的将微博转发到QQ的插件 中说:

                  WeiboHelperSettings

                  WeiboHelperSettings.yml 的内容有问题
                  是不是以非正常手段关闭了程序,
                  或者对其进行了不正常的编辑操作

                  A 1 Reply Last reply Reply Quote 0
                  • SnowMoonSS
                    SnowMoonSS last edited by

                    碰到个神秘bug,bot会莫名其妙发一条未订阅的用户的微博,但是这条微博又有着与已订阅用户相关的内容……是把点赞的也算进了吗
                    另外就是,有时候会发一条远古微博到群里……被调侃成火星bot了……
                    以上问题在控制台界面都没有什么异常现象,问题太神秘了,而且持续有段时间了,也没发现触发这两个问题的规律……

                    cssxsh 1 Reply Last reply Reply Quote 0
                    • cssxsh
                      cssxsh @SnowMoonSS last edited by

                      @snowmoonss
                      光口头描述毫无意义,至少说一下微博账户和具体的微博链接/内容

                      第二点,可以尝试吧历史记录保存时间修改得更长一些

                      SnowMoonSS 2 Replies Last reply Reply Quote 0
                      • SnowMoonSS
                        SnowMoonSS @cssxsh last edited by

                        @cssxsh 比如说这条:8770212c-2fd1-473e-b9d4-54da3773a7f3-image.png
                        https://weibo.com/5253615020/KwVWPiy7q
                        我订阅的是@最终幻想14 但我没看到@最终幻想14 有转发过这条,看这消息样式也不是转发的……

                        cssxsh 1 Reply Last reply Reply Quote 0
                        • cssxsh
                          cssxsh @SnowMoonSS last edited by cssxsh

                          @snowmoonss
                          经测试,的确会把点赞消息也记录

                          1 Reply Last reply Reply Quote 0
                          • A
                            agni-bumi @cssxsh last edited by

                            @cssxsh ‘E/weibo-helper’这个是在说e盘的位置吗?
                            我把旧版没问题的内容复制到WeiboHelperSettings.yml里还是不行;
                            更新插件是直接替换jar是吗?
                            此前一直右上角关闭面板是非正常关闭吗,怎么只有这一次出现不可逆的故障了;
                            除了这个插件,bili的也是同样的问题😥

                            cssxsh 1 Reply Last reply Reply Quote 0
                            • cssxsh
                              cssxsh @agni-bumi last edited by

                              @agni-bumi 在 Weibo Helper 一个简单的将微博转发到QQ的插件 中说:

                              一直右上角关闭面板

                              不要通过右上角的关闭窗口来关闭mcl
                              建议使用 /stop 或者 Ctrl+C

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                agni-bumi @cssxsh last edited by

                                @cssxsh 所以现在只能重装解决问题吗

                                cssxsh 1 Reply Last reply Reply Quote 0
                                • cssxsh
                                  cssxsh @agni-bumi last edited by

                                  @agni-bumi
                                  不要使用记事本作为编辑配置文件

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    AshMOB last edited by cssxsh

                                    你好,我这手机聊天输入/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
                                    
                                    cssxsh 1 Reply Last reply Reply Quote 0
                                    • cssxsh
                                      cssxsh @AshMOB last edited by

                                      @ashmob
                                      傻逼微博少传了一些信息,导致机器人解析错误,
                                      v1.2.7 尝试修复

                                      1 Reply Last reply Reply Quote 0
                                      • SnowMoonSS
                                        SnowMoonSS @cssxsh last edited by

                                        @cssxsh 试了下,原来是默认的7天,改成30天后会拽一条30天前的微博发出来……60cd8b15-3bba-4743-877d-bd31769c1cd7-image.png
                                        1ab

                                        1 Reply Last reply Reply Quote 0
                                        • FuYon
                                          FuYon 摸鱼 last edited by

                                          c佬的插件,我全都用(嘿嘿:D)

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            Mous last edited by

                                            @cssxsh 这个登录能持续几天?我这使用上1-2天就得重新登录了

                                            cssxsh 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 2 / 7
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact