mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2024-11-11 01:27:39 +08:00
🐛v0.1.4.1,随机背景图函数返回uri,修复Windows无背景图
This commit is contained in:
parent
4b04da1759
commit
96514cde47
@ -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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user