-
-
Save KyMidd/3ca562a18ccdd4637a812e7dba14d225 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # "Loading" messages for Teams | |
| teams_loading_responses = [ | |
| "🤔 Vera is reading our knowledge bases and building a response", | |
| "🤓 Vera's reading ALL the docs and will respond soon", | |
| "🤖 Vera is reading everything and computing a response beep boop", | |
| "🤖 Vera's doing her best here, getting back to you shortly", | |
| ] | |
| def message_handler(event_body, bot_bearer_token, user_graph_auth_token, bedrock_client): | |
| # Randomly select a response | |
| response = random.choice(teams_loading_responses) | |
| # We're on it | |
| respond_to_teams( | |
| bot_bearer_token, | |
| event_body, | |
| response, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment