mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2026-01-24 20:52:00 +00:00
✨初次提交
This commit is contained in:
6
nonebot_plugin_acgnshow/util.py
Normal file
6
nonebot_plugin_acgnshow/util.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from .config import BGIMAGE_PATH
|
||||
import random
|
||||
from pathlib import Path
|
||||
def choose_random_bgimage():
|
||||
randomfile = random.choice(list(BGIMAGE_PATH.iterdir()))
|
||||
return str(randomfile)
|
||||
Reference in New Issue
Block a user