From 19793672ac1b3ce459981aba535a752d12e6b129 Mon Sep 17 00:00:00 2001 From: Ruslan Belkov Date: Wed, 14 Feb 2024 18:26:37 +0300 Subject: [PATCH] feat: environment prefix in bot name Closes: #22 --- .env.example | 1 + src/constants.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 = [