add_group, add_Channel process modification
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-09-05 15:40:28 +09:00
parent 443799d480
commit e7a40b4718
4 changed files with 127 additions and 29 deletions

View File

@@ -1,5 +1,16 @@
import os
import asyncio
from db import init_db
# Проверка bot.db перед инициализацией
if os.path.exists("bot.db") and os.path.isdir("bot.db"):
print("Удаляю папку bot.db...")
import shutil
shutil.rmtree("bot.db")
if not os.path.exists("bot.db"):
print("Создаю пустой файл bot.db...")
open("bot.db", "a").close()
if __name__ == "__main__":
asyncio.run(init_db())