2024-10-05 14:35:26 +00:00
|
|
|
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
bot_token = os.getenv("BOT_TOKEN")
|
2024-10-09 20:50:46 +00:00
|
|
|
admins = [367757357, 1617340397, 5899041406]
|
|
|
|
|
|
|
|
|
|
|
|
# Теперь вы можете получить доступ к переменным окружения
|
|
|
|
postgres_user = os.getenv('POSTGRES_USER')
|
|
|
|
postgres_password = os.getenv('POSTGRES_PASSWORD')
|
|
|
|
postgres_db = os.getenv('POSTGRES_DB')
|
|
|
|
|
|
|
|
# Формируем строку подключения
|
|
|
|
DATABASE_URL = f"postgresql+asyncpg://{postgres_user}:{postgres_password}@db:5432/{postgres_db}"
|
2024-10-06 13:29:07 +00:00
|
|
|
|
|
|
|
shop_id = os.getenv("SHOP_ID")
|
2024-10-09 20:50:46 +00:00
|
|
|
shop_api_token = os.getenv("SHOP_API_TOKEN")
|
|
|
|
|
|
|
|
gpt_api_key = os.getenv("GPT_API_KEY")
|