diff --git a/.env.example b/.env.example index 7954d58..8e06598 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ TOKEN=XXX API_ROOT_PATH=XXX REDIS_URL=redis://@127.0.0.1:6379/db +ENVIRONMENT=development diff --git a/src/constants.py b/src/constants.py index 73217c7..4c38929 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,9 +1,11 @@ from aiogram import types +import os +environment = os.getenv("ENVIRONMENT", "development") instructions_url = "https://bit.ly/inno-music-room" how_to_get_url = "https://www.youtube.com/watch?v=mGfdun8ah3g" tg_chat_url = "https://t.me/joinchat/DjhyZkBN-FmZStxTB40qwQ" -bot_name = "Music Room Bot" +bot_name = "Music Room Bot" if environment == "production" else "[dev] Music Room Bot" bot_description = "Book a music room in the Innopolis Sport Complex. Made by @one_zero_eight" bot_short_description = "Book a music room in the Innopolis Sport Complex. Made by @one_zero_eight" bot_commands = [