Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created February 27, 2025 17:25
Show Gist options
  • Select an option

  • Save KyMidd/ff042a551d7116bc78c412c0447588f3 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/ff042a551d7116bc78c412c0447588f3 to your computer and use it in GitHub Desktop.
# Common function to handle both DMs and app mentions
def handle_message_event(client, body, say, bedrock_client, app, token, registered_bot_id):
# Initialize message_ts as None
# This is used to track the slack message timestamp for updating the message
message_ts = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment