ChatLearning——让bot学会你的群聊
-
@Koreyoshi C:\Users\Administrator>C:\Users\Administrator\Desktop\Windows\ChatLearning.exe
Traceback (most recent call last):
File "Chatmain.py", line 1565, in <module>
File "Chatmain.py", line 273, in globe
FileNotFoundError: [Errno 2] No such file or directory: 'config.clc'
[5424] Failed to execute script 'Chatmain' due to unhandled exception!
依然这样 -
@Koreyoshi http-api 2.5.0版本
-
解决了 看上面回答 还是要退回2.3.3版本 http-api
-
@dongbao666666 目录下有config.clc文件吗,直接双击运行,不要用命令行
-
打不开这文件,没有对应的程序,我用的图形化mirai-compose
-
@dongbao666666 不是,是打开.exe文件,右键用管理员权限打开
-
尝试翻看回复去解决,但没有成功,只能打扰大佬了 -
@LSJACG mcl前面有无报错?
-
-
@LSJACG 尝试把api http退回到2.3.3版本,其他不用变
-
翻看了大佬昨天的回复,已经是2.33了
-
@LSJACG mcl的版本是什么
-
@LSJACG mirai-api-http插件没有被mcl加载
-
请问要回退到某个版本吗 -
@LSJACG
16:28:16 [INFO] Verifying "org.bouncycastle:bcprov-jdk15on" v1.64
16:28:16 [INFO] Verifying "net.mamoe:mirai-console" v2.11.0-M1
16:28:16 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.11.0-M1
16:28:17 [INFO] Verifying "net.mamoe:mirai-core-all" v2.11.0-M1这是我开发用的版本,试试更新一下
-
好的,谢谢您的解答
-
2022.5.20更新
新增- 新增自定义回复等待时间,相关指令replywait
- 新增定时任务模块,详情请见README
- subadmin新增修改回复/语音回复概率
- config.clc文件新增@bot转语音功能时,违规字符、文本过长、功能冷却的提示文本,有需求可自行修改
修复
- 修复了语音回复未选择训练模型时,出现杂音的问题
优化
- 现在bot会尝试撤回!delete消息
- 现在!d或!d也可触发快速删除
- 优化了管理模式的一些提示文本
- 优化了快速删除的一些提示文本
更新注意
- Windows只需覆盖exe文件
- Linux只需覆盖ChatLearning文件
- 源码需要覆盖所有py文件
-
This post is deleted! -
开启全局就报错
<-已开启全局模式
抛出异常,已记录到日志(log.log文件)
Traceback (most recent call last):
File "ChatClass.py", line 308, in run
File "Chatmain.py", line 1690, in getcommand_chat
File "ChatAdmin.py", line 186, in getconfig
File "json_init_.py", line 293, in load
File "json_init_.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)抛出异常,已记录到日志(log.log文件)
Traceback (most recent call last):
File "ChatClass.py", line 308, in run
File "ChatLearning.py", line 202, in main
File "ChatLearning.py", line 157, in listening
File "ChatLearning.py", line 14, in getconfig
File "json_init_.py", line 293, in load
File "json_init_.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) -
@angelina-9730 建议用notepad++编辑,并且使用utf-8编码