MiraiForum

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

    ChatLearning——让bot学会你的群聊

    插件发布
    147
    818
    260363
    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.
    • Paperan
      Paperan last edited by

      小白又来了……有没有办法只把过滤的关键词只过滤回复不过滤问题,就是感觉bot一直锐评自己,我就屏蔽了bot的名字,但是就不会对自己的名字做回应了。以及过滤了单问号、草、呃,等等过短的关键词,但是模糊匹配的原因就会少记录很多话(

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

        为什么会这样啊,api-http应该设置的没有问题吧 bot也已经登录了
        大佬能看看什么原因吗QQ截图20220407235508.png

        QQ截图20220407235348.png

        7c868dfd-1901-4bc8-9c01-8e9b25359d46-image.png

        QQ截图20220407235327.png

        Koreyoshi 1 Reply Last reply Reply Quote 0
        • Koreyoshi
          Koreyoshi @Bella last edited by

          @Bella 试试把localhost换成0.0.0.0?

          Bella 1 Reply Last reply Reply Quote 0
          • Bella
            Bella @Koreyoshi last edited by

            @Koreyoshi
            emm...还是不行😢

            2022-04-08 09:07:23
            Traceback (most recent call last):
            File "ChatClass.py", line 116, in run
            File "Chatmain.py", line 1353, in getcommand_chat
            File "simuse.py", line 77, in Fetch_Message
            ConnectionError: 未与api-http取得连接,或mirai未登录

            QQ截图20220408090641.png

            221d9a07-39de-4bd8-ad4f-c07a7418c78c-image.png

            d165ca7f-4aaf-44e2-95ca-4793bfe733a2-image.png

            Koreyoshi 1 Reply Last reply Reply Quote 0
            • Koreyoshi
              Koreyoshi @Bella last edited by

              @Bella setting.yml换成0.0.0.0,data.json还是127.0.0.1不用动

              Bella 1 Reply Last reply Reply Quote 0
              • Bella
                Bella @Koreyoshi last edited by

                @Koreyoshi
                还是不行😭

                2022-04-08 09:23:22
                Traceback (most recent call last):
                File "ChatClass.py", line 116, in run
                File "Chatmain.py", line 1353, in getcommand_chat
                File "simuse.py", line 77, in Fetch_Message
                ConnectionError: 未与api-http取得连接,或mirai未登录

                dd9dffac-363a-45b4-a5af-4ea3b6e0be1d-image.png

                Koreyoshi 1 Reply Last reply Reply Quote 0
                • Koreyoshi
                  Koreyoshi @Bella last edited by Koreyoshi

                  @Bella 和mcl是在同一个机器或者服务器上吗?还有qq应该是bot的qq号

                  Bella 1 Reply Last reply Reply Quote 0
                  • Koreyoshi
                    Koreyoshi last edited by Koreyoshi

                    2022.4.8更新
                    修复

                    • 修复了更新至2.8.0版本后一些词库回复无法正确触发的问题
                    • 修复了控制台文本出错的问题

                    优化

                    • 优化了回复阈值过滤时的控制台输出文本
                    • 现在指令参数间有多个空格时,参数会被正确匹配,不再提示“参数错误”

                    更新注意

                    • Windows只需覆盖exe文件
                    • Linux只需覆盖ChatLearning文件
                    • 源码需要覆盖所有py文件
                    1 Reply Last reply Reply Quote 0
                    • Bella
                      Bella @Koreyoshi last edited by

                      @Koreyoshi
                      没事了 我把它放到服务器上突然就不报错了 我也不知道怎么回事😂 谢谢大佬

                      Koreyoshi 1 Reply Last reply Reply Quote 0
                      • Koreyoshi
                        Koreyoshi @Bella last edited by Koreyoshi

                        @Bella 因为要处于同一机器,如果您想本地使用这个插件,而mirai在服务器上的话,需要将data.json的host改为您服务器的公网IP,setting.yml保持0.0.0.0,且服务器防火墙要开放对应的port

                        Bella 1 Reply Last reply Reply Quote 0
                        • Bella
                          Bella @Koreyoshi last edited by

                          @Koreyoshi
                          嗯嗯 谢谢您了

                          1 Reply Last reply Reply Quote 0
                          • 夜
                            夜琳迦络 last edited by

                            希望可以导入其他人分享的句库

                            Koreyoshi 1 Reply Last reply Reply Quote 0
                            • Koreyoshi
                              Koreyoshi @夜琳迦络 last edited by

                              @夜琳迦络 可以导入的,直接复制在WordStock文件夹里,并开启全局模式

                              1 Reply Last reply Reply Quote 0
                              • E
                                emiliaa last edited by

                                image.png 请问一下,为什么装qcloud_cos时我这边显示仅支持python2.6 2.7

                                Koreyoshi 1 Reply Last reply Reply Quote 0
                                • Koreyoshi
                                  Koreyoshi @emiliaa last edited by

                                  @emiliaa cos-python-sdk-v5 应该是这个

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    emiliaa @Koreyoshi last edited by

                                    @Koreyoshi 已经弄好了,十分感谢

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      HOLIC last edited by

                                      SyntaxError: Non-ASCII character '\xaf' in file ChatLearning on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 请问运行报语法错误是为啥 百度说是字符集的问题

                                      Koreyoshi 1 Reply Last reply Reply Quote 0
                                      • Koreyoshi
                                        Koreyoshi @HOLIC last edited by Koreyoshi

                                        @HOLIC 是什么系统呢?用的是哪个版本

                                        H 1 Reply Last reply Reply Quote 0
                                        • H
                                          HOLIC @Koreyoshi last edited by

                                          @Koreyoshi 是linux centOS7.6 但是源码的话 我不会Python 都不晓得该咋编译完用

                                          Koreyoshi 1 Reply Last reply Reply Quote 0
                                          • Koreyoshi
                                            Koreyoshi @HOLIC last edited by Koreyoshi

                                            @HOLIC 用python3 --version或python --version看看python版本,如果是3.6以上的话就行
                                            然后cd到目录,用pip3 install -r requirements.txt可以自动安装依赖,完成后python3 Chatmain.py就能启动了

                                            H 3 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 15
                                            • 16
                                            • 17
                                            • 18
                                            • 19
                                            • 40
                                            • 41
                                            • 17 / 41
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact