mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-26 14:26:06 +00:00
feat: 删除sensitive.json以sensitive-template.json替换
This commit is contained in:
+2
-2
@@ -3,10 +3,10 @@ config.py
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
database.db
|
database.db
|
||||||
qchatgpt.log
|
qchatgpt.log
|
||||||
config.py
|
|
||||||
/banlist.py
|
/banlist.py
|
||||||
plugins/
|
plugins/
|
||||||
!plugins/__init__.py
|
!plugins/__init__.py
|
||||||
/revcfg.py
|
/revcfg.py
|
||||||
prompts/
|
prompts/
|
||||||
logs/
|
logs/
|
||||||
|
sensitive.json
|
||||||
@@ -314,6 +314,10 @@ if __name__ == '__main__':
|
|||||||
if not os.path.exists('banlist.py'):
|
if not os.path.exists('banlist.py'):
|
||||||
shutil.copy('banlist-template.py', 'banlist.py')
|
shutil.copy('banlist-template.py', 'banlist.py')
|
||||||
|
|
||||||
|
# 检查是否有sensitive.json,
|
||||||
|
if not os.path.exists("sensitive.json"):
|
||||||
|
shutil.copy("sensitive-template.json", "sensitive.json")
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == 'init_db':
|
if len(sys.argv) > 1 and sys.argv[1] == 'init_db':
|
||||||
init_db()
|
init_db()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"毛泽东",
|
"毛泽东",
|
||||||
"邓小平",
|
"邓小平",
|
||||||
"周恩来",
|
"周恩来",
|
||||||
|
"马克思",
|
||||||
"社会主义",
|
"社会主义",
|
||||||
"共产党",
|
"共产党",
|
||||||
"共产主义",
|
"共产主义",
|
||||||
@@ -21,6 +22,8 @@
|
|||||||
"天安门",
|
"天安门",
|
||||||
"六四",
|
"六四",
|
||||||
"政治局常委",
|
"政治局常委",
|
||||||
|
"两会",
|
||||||
|
"共青团",
|
||||||
"学潮",
|
"学潮",
|
||||||
"八九",
|
"八九",
|
||||||
"二十大",
|
"二十大",
|
||||||
@@ -48,6 +51,7 @@
|
|||||||
"作爱",
|
"作爱",
|
||||||
"做爱",
|
"做爱",
|
||||||
"性交",
|
"性交",
|
||||||
|
"性爱",
|
||||||
"自慰",
|
"自慰",
|
||||||
"阴茎",
|
"阴茎",
|
||||||
"淫妇",
|
"淫妇",
|
||||||
Reference in New Issue
Block a user