Skip to content

Commit

Permalink
fix allowed_channel_ids None
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Jun 5, 2024
1 parent 3db0505 commit ea92fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ANTHROPIC_TOKENS = int(os.environ.get("ANTHROPIC_TOKENS", 1024))

# Set up the allowed channel ID
ALLOWED_CHANNEL_IDS = os.environ.get("ALLOWED_CHANNEL_IDS", "")
ALLOWED_CHANNEL_IDS = os.environ.get("ALLOWED_CHANNEL_IDS", "None")

ENABLE_IMAGE = os.environ.get("ENABLE_IMAGE", "False")

Expand Down Expand Up @@ -407,7 +407,7 @@ def handle_mention(body: dict, say: Say):

channel = event["channel"]

if ALLOWED_CHANNEL_IDS != "":
if ALLOWED_CHANNEL_IDS != "None":
allowed_channel_ids = ALLOWED_CHANNEL_IDS.split(",")
if channel not in allowed_channel_ids:
# say("Sorry, I'm not allowed to respond in this channel.")
Expand Down

0 comments on commit ea92fe2

Please sign in to comment.