mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2024-11-14 11:27:46 +08:00
6 lines
188 B
Python
6 lines
188 B
Python
|
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)
|