mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2025-02-21 18:15:22 +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
|
import random
|
||||||
def choose_random_bgimage():
|
def choose_random_bgimage():
|
||||||
randomfile = random.choice(list(BGIMAGE_PATH.iterdir()))
|
randomfile = random.choice(list(BGIMAGE_PATH.iterdir()))
|
||||||
return str(randomfile)
|
randomurl = randomfile.as_uri()
|
||||||
|
return randomurl
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-acgnshow"
|
name = "nonebot-plugin-acgnshow"
|
||||||
version = "0.1.4"
|
version = "0.1.4.1"
|
||||||
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = "<4.0,>=3.9"
|
requires-python = "<4.0,>=3.9"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user