ClanStat/app/__init__.py
2024-11-27 02:58:28 +03:00

28 lines
728 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Информация о программе
__author__ = 'Alexander Popov'
__version__ = (0, 0, 1)
# Импорт модулей стандартной библиотеки
from os import getenv
# Импорт сторонних модулей
from loguru import logger
from dotenv import load_dotenv
from pyrogram import Client
# Импорт модулей приложения
from .db import DataBase
load_dotenv() # Выполняет чтение .env
# Приложение
app = Client(getenv('ACCOUNT'), api_id=getenv('APP_ID'), api_hash=getenv('APP_HASH'))
# База данных
db = DataBase(getenv('DB_PATH'))
# Логгер
logger.add(getenv('LOG_PATH'), compression='zip')
BOT_NAME = '@anicardplaybot'