MiraiForum

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

    求助!Mirai可以接收但是无法发送消息

    开发交流
    4
    13
    432
    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.
    • Konoha
      Konoha last edited by

      185eb3a5-e677-46d8-8856-1720ea7ec38f-image.png
      这里显示监听到了消息,也发送了消息,但是手机或电脑QQ都收不到这个消息。

      1 Reply Last reply Reply Quote 0
      • Konoha
        Konoha last edited by

        用的是
        event.group.sendMessage()
        和
        event.subject.sendMessage()

        1 Reply Last reply Reply Quote 0
        • Konoha
          Konoha last edited by

          奇怪的是有时能发有时又不能发,有时重启能解决,有时不行

          1 Reply Last reply Reply Quote 0
          • Y
            YangchenYe323 last edited by

            https://github.com/mamoe/mirai/blob/dev/docs/Bots.md 可以试一下设置HeartbeatStrategy

            Konoha Oeed 2 Replies Last reply Reply Quote 0
            • Konoha
              Konoha @YangchenYe323 last edited by

              @yangchenye323 在 求助!Mirai可以接收但是无法发送消息 中说:

              HeartbeatStrategy

              依次更换了STAT_HB、REGISTER 和 NONE三种,还是不行。而且我是一启动就无法发送了。

              1 Reply Last reply Reply Quote 0
              • Karlatemp
                Karlatemp last edited by

                很大概率是风控,挂几天就好了

                Konoha Y 2 Replies Last reply Reply Quote 0
                • Konoha
                  Konoha @Karlatemp last edited by

                  @karlatemp 好的,谢谢

                  1 Reply Last reply Reply Quote 0
                  • Konoha
                    Konoha last edited by

                    有时候从idea运行的话能发出,但是挂着一会也不行了。更多时候直接启动后一句话都发不出。。。用别人的完整版本登录自己的账号也是这样。。云服务器和自己的笔记本都如此。

                    1 Reply Last reply Reply Quote 0
                    • Y
                      YangchenYe323 @Karlatemp last edited by

                      @karlatemp 请问风控是什么原理啊,解决方法是需要把服务运行着挂几天还是停止等几天呢

                      Konoha 1 Reply Last reply Reply Quote 0
                      • Konoha
                        Konoha last edited by

                        我好了,我就这样一直挂着,今天8点她就能发消息了!!

                        1 Reply Last reply Reply Quote 0
                        • Konoha
                          Konoha @YangchenYe323 last edited by

                          @yangchenye323 我挂了一晚上,今早好了,不知道你怎么样了

                          Y 1 Reply Last reply Reply Quote 0
                          • Y
                            YangchenYe323 @Konoha last edited by

                            @konoha 我的java应用还是不稳定,换成kotlin版本目前倒是一直能发,不过不知道稳不稳。。

                            1 Reply Last reply Reply Quote 0
                            • Oeed
                              Oeed @YangchenYe323 last edited by

                              @yangchenye323
                              你好,我是一个刚刚入门的新手。
                              想询问一下,这个切换心跳协议的换
                              是直接改某个文件里面的代码去切换吗?
                              具体是哪个代码

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact