File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/slackBotFunction/app/slack Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55import time
66import json
7- import os
87import boto3
98from botocore .exceptions import ClientError
109from app .core .config import table , bot_token , logger
10+ import os
1111
1212
1313def setup_handlers (app ):
1414 """
15- Configure and register all Slack event handlers and middleware with the app.
16-
17- This is the main entry point for setting up the bot's event handling capabilities.
18- Called during app initialization to wire up all handlers.
15+ Register all event handlers with the Slack app
1916 """
2017
2118 @app .middleware
@@ -93,6 +90,7 @@ def trigger_async_processing(event_data):
9390 This function invokes the same Lambda function asynchronously to handle the
9491 actual AI processing without blocking the initial Slack response.
9592 """
93+ # incase we fail to re-invoke the lambda we should log an error
9694 try :
9795 lambda_client = boto3 .client ("lambda" )
9896 lambda_client .invoke (
You can’t perform that action at this time.
0 commit comments