nonebot_plugin_tarot
nonebot_plugin_tarot copied to clipboard
对于不能下载图片的解决
config.py 第56行中的镜像好像已经寄了,换成https://raw.githubusercontent.com/MinatoAquaCrews/nonebot_plugin_tarot/master/nonebot_plugin_tarot/
也不行,
我的解决办法是换成https://ghproxy.com/https://raw.githubusercontent.com/MinatoAquaCrews/nonebot_plugin_tarot/master/nonebot_plugin_tarot/
,然后把126行后面加上.png
, resource: str = "resource/" + f"{_theme}/{_type}/{_name}.png"
,
但是东方主题的塔罗牌图片是jpg的,这样就不能访问了
也可以通过_theme的不同用if判断格式
或者直接在tarot.json里面直接把每个牌文件名加上后缀
config.py 第56行中的镜像好像已经寄了,换成
https://raw.githubusercontent.com/MinatoAquaCrews/nonebot_plugin_tarot/master/nonebot_plugin_tarot/
也不行, 我的解决办法是换成https://ghproxy.com/https://raw.githubusercontent.com/MinatoAquaCrews/nonebot_plugin_tarot/master/nonebot_plugin_tarot/
,然后把126行后面加上.png
,resource: str = "resource/" + f"{_theme}/{_type}/{_name}.png"
, 但是东方主题的塔罗牌图片是jpg的,这样就不能访问了
fork一下仓库吧 然后把图片都转换一下(笨方法了属于是)然后用jsdelivr来加速
我一直用不了本地资源 怎么设置都没用 只能这样了(悲