mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
chore: banlist模版移至根目录
This commit is contained in:
2
main.py
2
main.py
@@ -16,7 +16,7 @@ sys.path.append(".")
|
|||||||
def check_file():
|
def check_file():
|
||||||
# 检查是否有banlist.py,如果没有就把banlist-template.py复制一份
|
# 检查是否有banlist.py,如果没有就把banlist-template.py复制一份
|
||||||
if not os.path.exists('banlist.py'):
|
if not os.path.exists('banlist.py'):
|
||||||
shutil.copy('res/templates/banlist-template.py', 'banlist.py')
|
shutil.copy('banlist-template.py', 'banlist.py')
|
||||||
|
|
||||||
# 检查是否有sensitive.json
|
# 检查是否有sensitive.json
|
||||||
if not os.path.exists("sensitive.json"):
|
if not os.path.exists("sensitive.json"):
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import sys
|
|||||||
|
|
||||||
required_files = {
|
required_files = {
|
||||||
"config.py": "config-template.py",
|
"config.py": "config-template.py",
|
||||||
"banlist.py": "res/templates/banlist-template.py",
|
"banlist.py": "banlist-template.py",
|
||||||
"tips.py": "tips-custom-template.py",
|
"tips.py": "tips-custom-template.py",
|
||||||
"sensitive.json": "res/templates/sensitive-template.json",
|
"sensitive.json": "res/templates/sensitive-template.json",
|
||||||
"scenario/default.json": "scenario/default-template.json",
|
"scenario/default.json": "scenario/default-template.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user