nonebot-plugin-acgnshow/nonebot_plugin_acgnshow/util.py
2024-07-11 12:41:25 +00:00

5 lines
163 B
Python

from .config import BGIMAGE_PATH
import random
def choose_random_bgimage():
randomfile = random.choice(list(BGIMAGE_PATH.iterdir()))
return str(randomfile)