-
-
Save KyMidd/1a99884ef3ec38913180d857ef1f4281 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
| # Main function | |
| if __name__ == "__main__": | |
| ... | |
| # Register the Slack handler | |
| print("🚀 Registering the Slack handler") | |
| app = create_app(token, signing_secret) | |
| # Initializes the slack app with the bot token and socket mode handler | |
| def create_app(token, signing_secret): | |
| return App( | |
| process_before_response=True, # Required for AWS Lambda | |
| token=token, | |
| signing_secret=signing_secret, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment