MiraiForum

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

    从外部导入词库,可在群内管理(自定义回复)

    其他项目发布
    9
    86
    1582
    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.
    • Anstiya
      Anstiya 摸鱼 last edited by Anstiya

      太久没更新,请移步语音生成合并版
      使用本地的xlsx表格进行管理
      事情是这样的
      前两天neko002佬发布了一个2W+词条的词库,哥们最近在学python,于是试着做了一下插件
      下载链接

      Anstiya 1 Reply Last reply Reply Quote 2
      • Anstiya
        Anstiya 摸鱼 last edited by

        没人,搭个郊县🥰

        C D 2 Replies Last reply Reply Quote 1
        • A
          akame1334 last edited by

          image.png
          image.png那个superdict好像没有欸

          Anstiya 1 Reply Last reply Reply Quote 0
          • Anstiya
            Anstiya 摸鱼 @akame1334 last edited by

            @akame1334 忘记加了,已经补上了

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

              词库删除有个变量敲错了,已修改

              1 Reply Last reply Reply Quote 0
              • N
                Niko_Sakura last edited by

                用java插件的mcl也能用吗

                Anstiya 1 Reply Last reply Reply Quote 0
                • Anstiya
                  Anstiya 摸鱼 @Niko_Sakura last edited by

                  @Niko_Sakura 这个是用python写的,一般是通过安装mirai-api-http并配置port和key进行使用的。

                  N 1 Reply Last reply Reply Quote 0
                  • N
                    Niko_Sakura @Anstiya last edited by

                    @Anstiya mcl不能使用吗 用pip指令安装仓库里的txt文件时显示我需要yiri-mirai版本0.2.7以上 但是我用的是mcl

                    Anstiya 1 Reply Last reply Reply Quote 0
                    • Anstiya
                      Anstiya 摸鱼 @Niko_Sakura last edited by Anstiya

                      @Niko_Sakura 我没太理解你的意思,mcl是无法直接安装此功能并使用的,使用方法是安装mirai-api-http插件(像安装其他插件一样。),修改mirai-api-http插件中的配置与main.py中的信息一致,然后通过mirai-api-http使用此功能。

                      N 1 Reply Last reply Reply Quote 0
                      • N
                        Niko_Sakura @Anstiya last edited by

                        @Anstiya 这个是我昨晚安装时出现的错误信息
                        ERROR: Ignored the following versions that require a different python version: 0.2.6.2 Requires-Python >=3.7,<=3.10; 0.2.7 Requires-Python >=3.7,<=3.10; 0.3.0a0 Requires-Python >=3.7,<=3.10
                        ERROR: Could not find a version that satisfies the requirement yiri-mirai==0.2.7 (from versions: 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.2.2, 0.2.2.1, 0.2.3, 0.2.3.1, 0.2.4, 0.2.4.1, 0.2.4.2, 0.2.4.3, 0.2.5, 0.2.6, 0.2.6.1

                        Anstiya 1 Reply Last reply Reply Quote 0
                        • Anstiya
                          Anstiya 摸鱼 @Niko_Sakura last edited by

                          @Niko_Sakura 更新python版本,推荐3.9.0

                          N 2 Replies Last reply Reply Quote 0
                          • N
                            Niko_Sakura @Anstiya last edited by

                            @Anstiya 那下面那条是什么意思呢

                            Anstiya 1 Reply Last reply Reply Quote 0
                            • N
                              Niko_Sakura @Anstiya last edited by

                              @Anstiya 貌似版本改成3.9以后就好了 谢谢

                              1 Reply Last reply Reply Quote 0
                              • Anstiya
                                Anstiya 摸鱼 @Niko_Sakura last edited by

                                @Niko_Sakura 我写的时候用的py3.9.0,应该是因为yiri-mirai0.2.7只支持大于等于3.7的版本

                                N 2 Replies Last reply Reply Quote 0
                                • N
                                  Niko_Sakura @Anstiya last edited by

                                  @Anstiya 我还想问一下 就是要改的东西 就是port 这个端口在哪里改 我实在没找到(

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    Niko_Sakura @Anstiya last edited by

                                    @Anstiya 我这边的http插件没有显示端口是多少 我是这个意思

                                    Anstiya 1 Reply Last reply Reply Quote 0
                                    • Anstiya
                                      Anstiya 摸鱼 @Niko_Sakura last edited by

                                      @Niko_Sakura 我刚提交了一个mirai-api-http配置文件示例,使用该文件中的内容替换掉原本mirai-api-http配置文件中的内容,然后进入main.py修改3377428814为你bot的qq,有需要的话可以把第32行botName变量修改为你bot的名字。
                                      屏幕截图 2022-12-04 123035.jpg

                                      N 1 Reply Last reply Reply Quote 0
                                      • N
                                        Niko_Sakura @Anstiya last edited by

                                        @Anstiya 我将文件路径改为了file = open(r'C:\Users\Administrator\Desktop\wReply-master\Config\wq.xls', encoding='utf-8')后才能正常运行 但是运行后提示我发生异常: JSONDecodeError
                                        Expecting value: line 1 column 1 (char 0)

                                        During handling of the above exception, another exception occurred:

                                        File "C:\Users\Administrator\Desktop\wReply-master\main.py", line 24, in <module>
                                        dict = json.loads(js)
                                        我现在也是没招了

                                        Anstiya 1 Reply Last reply Reply Quote 0
                                        • Anstiya
                                          Anstiya 摸鱼 @Niko_Sakura last edited by Anstiya

                                          @Niko_Sakura 你运行的main.py吗,第21行?那个是打开txt读取字典的,而不是直接读取表格,看一下Config里面有没有两个txt。正确修改main.py并运行即可,词库已经整理成了字典,图片中的open就是读取它的。
                                          屏幕截图 2022-12-04 125606.jpg

                                          N 2 Replies Last reply Reply Quote 0
                                          • N
                                            Niko_Sakura @Anstiya last edited by

                                            @Anstiya 啊 我还以为是直接读表格的就给路径改了

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