nonebot_plugin_tarot icon indicating copy to clipboard operation
nonebot_plugin_tarot copied to clipboard

对于不能下载图片的解决

Open laiyoi opened this issue 1 year ago • 5 comments

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的,这样就不能访问了

laiyoi avatar Aug 08 '23 10:08 laiyoi

也可以通过_theme的不同用if判断格式

laiyoi avatar Aug 08 '23 10:08 laiyoi

或者直接在tarot.json里面直接把每个牌文件名加上后缀

laiyoi avatar Aug 08 '23 10:08 laiyoi

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来加速 image

Kimaru-bili avatar Sep 01 '23 15:09 Kimaru-bili

我一直用不了本地资源 怎么设置都没用 只能这样了(悲

Kimaru-bili avatar Sep 01 '23 15:09 Kimaru-bili

可以尝试一下 v0.5.0a6

主要就是代理寄了,换成ghproxy了

PS:我手头没有活bot,如果能帮忙测试插件就太好了

KafCoppelia avatar Feb 13 '24 12:02 KafCoppelia