diff --git a/plugins/update_gocqhttp/__init__.py b/plugins/update_gocqhttp/__init__.py index 5e1db1d7..8c1f5cbb 100644 --- a/plugins/update_gocqhttp/__init__.py +++ b/plugins/update_gocqhttp/__init__.py @@ -9,7 +9,8 @@ from util.utils import scheduler, get_bot, UserExistLimiter from configs.config import UPDATE_GOCQ_GROUP from pathlib import Path -path = str(Path('/resources/gocqhttp_file/').absolute()) + '/' +path = str((Path() / "resources" / "gocqhttp_file").absolute()) + '/' +print(path) lasted_gocqhttp = on_command("更新gocq", permission=GROUP, priority=5, block=True)