Завершена подготовка к миграции проекта в docker контейнер

This commit is contained in:
2025-08-20 23:20:27 +07:00
parent b69a5bfc45
commit fde4b9e721
10 changed files with 147 additions and 34 deletions

View File

@@ -16,7 +16,7 @@ import json
import re
import shutil
from constants.global_constants import *
from data.secrets.TOKENS import TOKENS
from libs.tokens_formatter import TOKENS
import CoreFun
@@ -46,7 +46,6 @@ async def main():
'''
sup_bot = CoreFun.AdminBot(DataBase, stop_event, task_start = False)
all_bots = [sup_bot]
@@ -78,7 +77,8 @@ async def main():
if not bot.is_closed():
await bot.close()
await DataBase.close()
if DataBase is not None:
await DataBase.close()
if __name__ == "__main__":
asyncio.run(main())