MiraiForum

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

    ChatLearning——让bot学会你的群聊

    插件发布
    147
    818
    260091
    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.
    • Koreyoshi
      Koreyoshi @冰丶凝梦 last edited by

      @冰丶凝梦 找到问题所在了,马上修复

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

        您好,我在windows端运行, 出现了下面这个错误:

        Exception in thread Thread-1:
        Traceback (most recent call last):
          File "threading.py", line 973, in _bootstrap_inner
          File "threading.py", line 910, in run
          File "Chatmain.py", line 728, in getcommand_chat
          File "simuse.py", line 75, in Fetch_Message
        TypeError: 'int' object is not subscriptable
        

        我的python版本是3.8.0
        ChatLearning版本是2.0.0

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

          @Koreyoshi
          已经成功登陆,api-http应该大概也没问题,但是启动.py还是有报错...

          2022-03-01 16:56:54 I/Mirai HTTP API: ********************************************************
          2022-03-01 16:56:54 I/http adapter: >>> [http adapter] is listening at http://localhost:8080
          2022-03-01 16:56:54 I/Mirai HTTP API: Http api server is running with verifyKey: gUL5GqwD
          2022-03-01 16:56:54 I/Mirai HTTP API: adaptors: [http]
          2022-03-01 16:56:54 I/Mirai HTTP API: ********************************************************
          
          
          2022-03-01 16:56:56 I/Bot.xxxxxx: Bot login successful.
          2022-03-01 16:56:56 I/main: mirai-console started successfully.
          
          
          Koreyoshi 1 Reply Last reply Reply Quote 0
          • Anstiya
            Anstiya 摸鱼 @Koreyoshi last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Koreyoshi
              Koreyoshi @maudslice last edited by

              @maudslice 需要先运行mirai,或者是mirai-api-http没有配置好

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

                @CabbCat 报错的内容是什么呢?api-http有确保singlemode为false吗

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

                  2022.3.1更新:
                  新增

                  • 返回的词库表格支持下载至本地进行浏览

                  修复

                  • 修复了在查找答案时发送图片导致程序崩溃的问题
                  • 修复了有些答案无法查找的问题
                  • 修复了有查找结果但是表格为空的问题

                  优化

                  • 优化表格的显示方式,现在不同问题间有明显区分,便于查看

                  更新注意

                  • Windows只需覆盖exe文件
                  • Linux则需覆盖所有py文件
                  • 从ChatLearningV1.2.0之前的版本更新,请先使用blackfreq来设置黑名单容错次数
                  冰 Kallen 2 Replies Last reply Reply Quote 0
                  • 冰
                    冰丶凝梦 @Koreyoshi last edited by

                    @Koreyoshi 好耶

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

                      @Koreyoshi 好的, 解决了, 十分感谢

                      1 Reply Last reply Reply Quote 0
                      • Kallen
                        Kallen 摸鱼 @Koreyoshi last edited by Kallen

                        @Koreyoshi
                        大佬我更新此版本之后启动出现报错之后进程就结束了...
                        ba47c99c-52ae-40b8-ac87-d5de3455c0a1-image.png
                        更新方法是直接替换exe文件,在上个版本运行正常。

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

                          @Kallen 再替换成上个版本能用吗?或者试试重新把data文件替换一下再填上去

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

                            想不把图片作为问题但作为回答,应该如何实现呢?能否实现呢。拉黑图片好像大家都会触发黑名单……黑名单就意义不明了

                            Koreyoshi 2 Replies Last reply Reply Quote 0
                            • Koreyoshi
                              Koreyoshi @Paperan last edited by

                              @Paperan 应该把那张图片添加进过滤列表,而不是敏感词

                              1 Reply Last reply Reply Quote 1
                              • Koreyoshi
                                Koreyoshi @Paperan last edited by

                                @Paperan 敏感词主要是拿来pass掉一些涉黄涉政等的关键字,以免bot发送带有这些字眼的文字而被举报封号

                                1 Reply Last reply Reply Quote 1
                                • Kallen
                                  Kallen 摸鱼 last edited by

                                  @Koreyoshi
                                  emm我重新配置了一下现在正常了,感谢大佬的回复。

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

                                    @Kallen 嗯嗯!没事

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

                                      [root@iZbp1fn2j1y1lqrmeyjw9wZ aibot]# python Chatmain.py
                                      Traceback (most recent call last):
                                      File "/home/admin/aibot/Chatmain.py", line 11, in <module>
                                      import ChatAllfind
                                      File "/home/admin/aibot/ChatAllfind.py", line 6, in <module>
                                      import xlwt
                                      ModuleNotFoundError: No module named 'xlwt'
                                      启动报错,插件版本2.1,Python版本3.9.10

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

                                        @mr_null pip install xlwt 运行这段指令

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

                                          我想询问一下:
                                          Traceback (most recent call last):
                                          File "Chatmain.py", line 855, in <module>
                                          hello()
                                          File "Chatmain.py", line 110, in hello
                                          file = open('config.clc', 'w', encoding='utf-8-sig')
                                          PermissionError: [Errno 13] Permission denied: 'config.clc'
                                          这段是哪里出问题了?
                                          python虚拟环境的3.8

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

                                            @Oeed
                                            找到问题了,API没有配置好,已搞定

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