Update add_plugins.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user