From 96514cde47acf84cb20c85aafcf09a304ad46f73 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Sat, 13 Jul 2024 13:47:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bv0.1.4.1=EF=BC=8C=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=9B=BE=E5=87=BD=E6=95=B0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?uri=EF=BC=8C=E4=BF=AE=E5=A4=8DWindows=E6=97=A0=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_acgnshow/util.py | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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"