Skip to content

Commit

Permalink
✏️ log slack app token and bot once
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Jan 4, 2024
1 parent ef35345 commit 18e4171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reginald/slack_bot/setup_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setup_slack_bot(model: ResponseModel) -> Bot:
slack_bot = Bot(model=model)

logging.info("Connecting to Slack...")
if get_env_var("SLACK_APP_TOKEN") is None:
if get_env_var("SLACK_APP_TOKEN", log=False) is None:
logging.error("SLACK_APP_TOKEN is not set")
sys.exit(1)

Expand Down Expand Up @@ -60,7 +60,7 @@ def setup_api_slack_bot(api_url: str, emoji: str) -> ApiBot:
slack_bot = ApiBot(api_url=api_url, emoji=emoji)

logging.info("Connecting to Slack...")
if get_env_var("SLACK_APP_TOKEN") is None:
if get_env_var("SLACK_APP_TOKEN", log=False) is None:
logging.error("SLACK_APP_TOKEN is not set")
sys.exit(1)

Expand Down

0 comments on commit 18e4171

Please sign in to comment.