Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Mar 22, 2024
1 parent 68db0b6 commit 64521db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def handle_team_join(event_data):
user_id = event_data["event"]["user"]["id"]
response = client.chat_postMessage(channel='#project-blt-lettuce-joins', text=f"<@{user_id}> joined the team.")
if not response["ok"]:
logger.error(f"Error sending message: {response['error']}")
logging.error(f"Error sending message: {response['error']}")
#client.chat_postMessage(channel='#trying_bot', text=f"<@{user_id}> joined the team.")

@slack_events_adapter.on("member_joined_channel")
Expand Down Expand Up @@ -65,7 +65,7 @@ def handle_message(payload):
if (message.get("subtype") is None and
not any(keyword in message.get("text", "").lower() for keyword in ["#contribute"]) and
any(keyword in message.get("text", "").lower() for keyword in ["contribute", "contributing", "contributes"])):
logger.info(f"detected contribute")
logging.info(f"detected contribute")
user = message.get("user")
channel = message.get("channel")
# Use the `channel` variable to send back to the same channel
Expand Down

0 comments on commit 64521db

Please sign in to comment.