Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created December 27, 2024 19:24
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/1a99884ef3ec38913180d857ef1f4281 to your computer and use it in GitHub Desktop.
# 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