diff --git a/.gitignore b/.gitignore index d666960..80c254e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,4 @@ __pycache__ *.pyc .vscode .idea -*.md -.env.local \ No newline at end of file +*.md \ No newline at end of file diff --git a/monitor_utils/config.py b/monitor_utils/config.py index e119a58..13f4508 100644 --- a/monitor_utils/config.py +++ b/monitor_utils/config.py @@ -14,16 +14,13 @@ from monitor_utils.constants import ( def is_production(override_production=False) -> bool: if override_production: - return override_production + return False return DEVELOPMENT_MODE == DevelopmentMode.PRODUCTION -IS_PRODUCTION = is_production() - - -def get_bot_token() -> str: - if IS_PRODUCTION: +def get_bot_token(is_production: bool) -> str: + if is_production: return PRODUCTION_BOT_TOKEN return DEVELOPMENT_BOT_TOKEN diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..2ffb2ea --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.10" + +[[package]] +name = "monitor-utils" +version = "0.1.0" +source = { editable = "." }