Closed Evyde closed 3 years ago
请尝试升级到最新版本,如果还出现错误,就让我想想怎么回事(不是
请尝试升级到最新版本,如果还出现错误,就让我想想怎么回事(不是
是昨天才Clone下来的,太奇怪了。
刚刚测试,这个问题也消失了,应该是 #3 的衍生问题。
不过又有新问题了,使用pdf hi
时,返回了Cannot open resouce
,但是文件夹权限bot/statics/temp
我已经设置成777了,查看目录中也有图片文件。
刚刚测试,这个问题也消失了,应该是 #3 的衍生问题。 不过又有新问题了,使用
pdf hi
时,返回了Cannot open resouce
,但是文件夹权限bot/statics/temp
我已经设置成777了,查看目录中也有图片文件。
摸
命令可以正常使用。
可将 sagiri-bot.py 中 324-332 行的
try:
message_send = await group_message_process(message, message_info, app, frequency_limit_dict)
except Exception as e:
message_send = [
"quoteSource",
MessageChain.create([
Plain(text=str(e))
])
]
更改为
message_send = await group_message_process(message, message_info, app, frequency_limit_dict)
再次运行复现错误以在控制台查看报错信息,如果可以,请将报错信息包括报错位置等发送给我
感谢大佬私聊指点,已经解决。
首先请先注意配置文件中目录名称是否正确,以及权限是否可以访问到(statics
目录需要对应用户组的rw权限)。
然后请寻找对应不可以正常使用功能的源码,将其中带有字体文件引用的,例如./statics/simhei.ttf
改成您自己上传的字体路径。目前来看,涉及到的文件有:SAGIRIBOT/basics/tools.py
、SAGIRIBOT/functions/get_review.py
。希望大佬可以在配置文件里加入字体选择。
大佬您好,麻烦您了。
以下是配置文件: