mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
chore: banlist模版移至根目录
This commit is contained in:
parent
a975718a64
commit
b4bd86549e
2
main.py
2
main.py
|
@ -16,7 +16,7 @@ sys.path.append(".")
|
|||
def check_file():
|
||||
# 检查是否有banlist.py,如果没有就把banlist-template.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
|
||||
if not os.path.exists("sensitive.json"):
|
||||
|
|
|
@ -7,7 +7,7 @@ import sys
|
|||
|
||||
required_files = {
|
||||
"config.py": "config-template.py",
|
||||
"banlist.py": "res/templates/banlist-template.py",
|
||||
"banlist.py": "banlist-template.py",
|
||||
"tips.py": "tips-custom-template.py",
|
||||
"sensitive.json": "res/templates/sensitive-template.json",
|
||||
"scenario/default.json": "scenario/default-template.json",
|
||||
|
|
Loading…
Reference in New Issue
Block a user