Update the config class for the dots bot api.
This commit is contained in:
@@ -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=}"
|
||||||
|
|||||||
Reference in New Issue
Block a user