Update the config class for the dots bot api.

This commit is contained in:
2023-07-18 15:53:35 +03:00
parent 32aa9f3225
commit 3bb09413b1
+6 -1
View File
@@ -1,5 +1,10 @@
from environs import Env
env = Env()
env.read_env()
class DotsBotApiConfig(): class DotsBotApiConfig():
_base_url = "https://domain" _base_url = env('BOT_API_BASE_URL')
def __str__(self) -> str: def __str__(self) -> str:
return f"{self._base_url=}" return f"{self._base_url=}"