feat: 支持禁用某人或某群

This commit is contained in:
Rock Chin
2023-01-07 16:50:34 +08:00
parent 0afc2d5903
commit bf7487fafe
6 changed files with 54 additions and 13 deletions

View File

@@ -221,6 +221,10 @@ if __name__ == '__main__':
print('请先在config.py中填写配置')
sys.exit(0)
# 检查是否有banlist.py,如果没有就把banlist-template.py复制一份
if not os.path.exists('banlist.py'):
shutil.copy('banlist-template.py', 'banlist.py')
if len(sys.argv) > 1 and sys.argv[1] == 'init_db':
init_db()
sys.exit(0)