diff --git a/nonebot_plugin_acgnshow/util.py b/nonebot_plugin_acgnshow/util.py index c777725..69634a6 100644 --- a/nonebot_plugin_acgnshow/util.py +++ b/nonebot_plugin_acgnshow/util.py @@ -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) \ No newline at end of file + randomurl = randomfile.as_uri() + return randomurl \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a763320..6e98f8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"