Update add_plugins.py

This commit is contained in:
镀铬酸钾
2026-03-05 23:01:55 +08:00
committed by GitHub
parent 9cb6104a29
commit 46cb2be120

View File

@@ -2,7 +2,7 @@ import os
import sys
def create_plugin(plugin_name):
base = os.path.dirname(__file__)
base = os.path.dirname(os.path.abspath(__file__))
plugin_dir = os.path.join(base, "../plugins")
os.makedirs(plugin_dir, exist_ok=True)
@@ -10,7 +10,7 @@ def create_plugin(plugin_name):
file_path = os.path.join(plugin_dir, file_name)
if os.path.exists(file_path):
print(f"插件已存在")
print("插件已存在")
return
template = f'''from core.managers.command_manager import matcher