Private
Public Access
forked from FOSS/AutoShop-Djimbo-Simple
style: format imports and line wrapping
This commit is contained in:
@@ -9,7 +9,13 @@ from aiogram.client.default import DefaultBotProperties
|
||||
from aiogram.client.session.aiohttp import AiohttpSession
|
||||
from aiogram.enums import ParseMode
|
||||
|
||||
from tgbot.data.config import BOT_DATABASE_EXPORT, BOT_SCHEDULER, BOT_TOKEN, get_admins, validate_bot_config
|
||||
from tgbot.data.config import (
|
||||
BOT_DATABASE_EXPORT,
|
||||
BOT_SCHEDULER,
|
||||
BOT_TOKEN,
|
||||
get_admins,
|
||||
validate_bot_config,
|
||||
)
|
||||
from tgbot.database.core import close_database
|
||||
from tgbot.database.repository import prepare_database
|
||||
from tgbot.middlewares import register_all_middlewares
|
||||
@@ -141,9 +147,7 @@ async def main():
|
||||
bot = Bot(
|
||||
token=BOT_TOKEN,
|
||||
session=session,
|
||||
default=DefaultBotProperties(
|
||||
parse_mode=ParseMode.HTML
|
||||
),
|
||||
default=DefaultBotProperties(parse_mode=ParseMode.HTML),
|
||||
)
|
||||
|
||||
register_all_middlewares(dp)
|
||||
@@ -160,8 +164,10 @@ async def main():
|
||||
|
||||
bot_info = await bot.get_me()
|
||||
bot_logger.info("Бот запущен: @%s", bot_info.username)
|
||||
print(colorama.Fore.LIGHTYELLOW_EX + f"~~~~~ Бот запущен - @{bot_info.username} ~~~~~")
|
||||
print(colorama.Fore.LIGHTBLUE_EX + "~~~~~ TG developer - @djimbox ~~~~~")
|
||||
print(
|
||||
colorama.Fore.LIGHTYELLOW_EX
|
||||
+ f"~~~~~ Бот запущен - @{bot_info.username} ~~~~~"
|
||||
)
|
||||
print(colorama.Fore.RESET)
|
||||
|
||||
if len(get_admins()) == 0:
|
||||
|
||||
Reference in New Issue
Block a user