MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    思知机器人插件

    插件发布
    10
    18
    3840
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • T
      thetbw 最后由 编辑

      地址 https://github.com/thetbw/my-bot
      实例:

      说明:

      • 自动好友,群请求,同时向admin发送请求信息
      • 不支持图片
      • 群内需要@ta ,才会回你

      关于思知机器人

      https://www.ownthink.com/ 目前免费,还行吧

      1 条回复 最后回复 回复 引用 0
      • X
        xsluck 最后由 编辑

        可以,下载试试看

        1 条回复 最后回复 回复 引用 0
        • X
          xsluck 最后由 编辑

          404.......

          T 1 条回复 最后回复 回复 引用 0
          • T
            thetbw @xsluck 最后由 编辑

            @xsluck 额,忘了我仓库没有公开,我改一下

            1 条回复 最后回复 回复 引用 0
            • Z
              ZXT2333 最后由 编辑

              IMG_0741.jpeg 插件闪退是怎么回事2.8.0RC版本

              T 1 条回复 最后回复 回复 引用 0
              • W
                william-jw 最后由 编辑

                可以,还不错

                1 条回复 最后回复 回复 引用 0
                • T
                  thetbw @ZXT2333 最后由 编辑

                  @zxt2333 应该是配置文件命题,配置文件是yaml格式,确认一下,还有编码utf-8

                  Z 1 条回复 最后回复 回复 引用 0
                  • Z
                    ZXT2333 @thetbw 最后由 编辑

                    @thetbw IMG_0754.png 还是不行

                    1 条回复 最后回复 回复 引用 0
                    • 9
                      9mb-Project 最后由 编辑

                      此回复已被删除!
                      1 条回复 最后回复 回复 引用 0
                      • 9
                        9mb-Project 最后由 编辑

                        2021-11-06 19:08:53 E/thetbw-bot: Exception in coroutine Plugin thetbw-bot of thetbw-bot
                        io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class xyz.thetbw.bot.OwnThinkBot$BotResp
                        with response from https://api.ownthink.com/bot:
                        status: 200 OK
                        response headers:
                        access-control-allow-origin: *
                        , connection: keep-alive
                        , content-type: text/html; charset=UTF-8
                        , date: Sat, 06 Nov 2021 11:08:52 GMT
                        , server: nginx
                        , strict-transport-security: max-age=31536000; includeSubDomains
                        , transfer-encoding: chunked

                            at io.ktor.client.call.HttpClientCall.receive(HttpClientCall.kt:92)
                            at xyz.thetbw.bot.OwnThinkBot.sendMessage(OwnThinkBot.kt:99)
                            at xyz.thetbw.bot.OwnThinkBot$sendMessage$1.invokeSuspend(OwnThinkBot.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 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)
                        
                        1 条回复 最后回复 回复 引用 0
                        • 9
                          9mb-Project 最后由 编辑

                          请问这是什么回事,在群聊内@机器人时会出现这种情况,但私聊不会

                          T 1 条回复 最后回复 回复 引用 0
                          • T
                            thetbw @9mb-Project 最后由 编辑

                            @9mb-project 经常有还是偶尔有呢,应该是请求机器人时序列化的问题

                            1 条回复 最后回复 回复 引用 0
                            • Z
                              ZhangJIE 最后由 编辑

                              QQ群@机器人查询天气的时候有问题,会返回一个错误的天气信息,应该是群内查询的时候机器人识别成了@XXX城市天气,api内找不到这个城市就乱返回了一个城市天气信息

                              1 条回复 最后回复 回复 引用 0
                              • Z
                                ZhangJIE 最后由 编辑

                                @thetbw

                                1 条回复 最后回复 回复 引用 0
                                • H
                                  HOLIC 最后由 编辑

                                  ![@{N)2VWGN]YJ{`_PTJ}~BLM.png](/assets/uploads/files/1649779348216-n-2vwgn-yj-96-_ptj-blm.png) 读取yml报错了是为啥

                                  1 条回复 最后回复 回复 引用 0
                                  • М
                                    Маджищикува 最后由 编辑

                                    这样报错是怎么回事
                                    2022-07-27 15:29:04 E/thetbw-bot: Exception in coroutine Plugin xyz.thetbw.bot of thetbw-bot
                                    java.lang.NoClassDefFoundError: Could not initialize class xyz.thetbw.bot.HttpClientKt
                                    at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.OwnThinkBot.sendMessage(OwnThinkBot.kt:33)
                                    at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.PluginMain$onEnable$2.invokeSuspend(PluginMain.kt:72)
                                    at thetbw-bot-0.1.0.mirai.jar//xyz.thetbw.bot.PluginMain$onEnable$2.invoke(PluginMain.kt)
                                    at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:511)
                                    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.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:58)
                                    at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
                                    at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
                                    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
                                    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
                                    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
                                    at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:58)
                                    at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:125)
                                    at net.mamoe.mirai.internal.event.EventListeners.callListeners$mirai_core(EventListeners.kt:73)
                                    at net.mamoe.mirai.internal.event.EventListeners$callListeners$1.invokeSuspend(EventListeners.kt)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
                                    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                                    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: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)

                                    1 条回复 最后回复 回复 引用 0
                                    • Z
                                      zgdx159 最后由 编辑

                                      image.png
                                      设置好机器人和yaml文件了,但是不能正常的运行,请问这是怎么回事?

                                      1 条回复 最后回复 回复 引用 0
                                      • S
                                        Srkm 最后由 编辑

                                        思知能接收到消息,但并不回复,想问一下接口地址需要改吗

                                        1 条回复 最后回复 回复 引用 0
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact