forgot to remove reference to prod bot token in get_bot_token and moved said function into discord bot repo
This commit is contained in:
1 parent
bd46b92724
commit
8270c9d7fd
1 file changed
+1
-10
@@ -5,7 +5,7 @@ import logging
|
||||
import pathlib
|
||||
from enum import Enum
|
||||
|
||||
from monitor_utils.constants import DEVELOPMENT_BOT_TOKEN, LOGGERS, PRODUCTION_BOT_TOKEN
|
||||
from monitor_utils.constants import LOGGERS
|
||||
|
||||
|
||||
class DevelopmentMode(str, Enum):
|
||||
@@ -21,15 +21,6 @@ def is_production(development_mode: DevelopmentMode) -> bool:
|
||||
return development_mode == DevelopmentMode.PRODUCTION
|
||||
|
||||
|
||||
def get_bot_token(is_production: bool) -> str:
|
||||
"""Return the production or development bot token for the mode."""
|
||||
|
||||
if is_production:
|
||||
return PRODUCTION_BOT_TOKEN
|
||||
|
||||
return DEVELOPMENT_BOT_TOKEN
|
||||
|
||||
|
||||
def get_config(
|
||||
monitor_name: str,
|
||||
config_dir: str | pathlib.Path = "configs",
|
||||
|
||||
Reference in new issue
Block a user