mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 22:30:02 +08:00
update v0.0.5.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
from configs.path_config import DATA_PATH
|
||||
import nonebot
|
||||
import os
|
||||
|
||||
nonebot.load_plugins("plugins/statistics")
|
||||
|
||||
old_file1 = Path(DATA_PATH) / "_prefix_count.json"
|
||||
old_file2 = Path(DATA_PATH) / "_prefix_user_count.json"
|
||||
new_path = Path(DATA_PATH) / "statistics"
|
||||
new_path.mkdir(parents=True, exist_ok=True)
|
||||
if old_file1.exists():
|
||||
os.rename(old_file1, new_path / "_prefix_count.json")
|
||||
if old_file2.exists():
|
||||
os.rename(old_file2, new_path / "_prefix_user_count.json")
|
||||
Reference in New Issue
Block a user