🐛v0.1.4.1,随机背景图函数返回uri,修复Windows无背景图

This commit is contained in:
Asankilp 2024-07-13 13:47:38 +00:00
parent 4b04da1759
commit 96514cde47
2 changed files with 3 additions and 2 deletions

View File

@ -2,4 +2,5 @@ from .config import BGIMAGE_PATH
import random
def choose_random_bgimage():
randomfile = random.choice(list(BGIMAGE_PATH.iterdir()))
return str(randomfile)
randomurl = randomfile.as_uri()
return randomurl

View File

@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-acgnshow"
version = "0.1.4"
version = "0.1.4.1"
description = "Nonebot2插件从哔哩哔哩会员购获取简易展览数据"
readme = "README.md"
requires-python = "<4.0,>=3.9"