mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
原神黄历改为PIL
This commit is contained in:
parent
b0606feff3
commit
05de55cc6b
@ -77,7 +77,7 @@ async def build_alc_image() -> str:
|
||||
构造今日运势图片
|
||||
"""
|
||||
for file in os.listdir(ALC_PATH):
|
||||
if file not in ["back.png", f"{datetime.now().date()}"]:
|
||||
if file not in ["back.png", f"{datetime.now().date()}.png"]:
|
||||
(ALC_PATH / file).unlink()
|
||||
path = ALC_PATH / f"{datetime.now().date()}.png"
|
||||
if path.exists():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user