File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/slackBotFunction/app/slack Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ def setup_handlers(app: App) -> None:
4141 app .event ("message" )(ack = respond_to_events , lazy = [unified_message_handler ])
4242 app .action ("feedback_yes" )(ack = respond_to_action , lazy = [feedback_handler ])
4343 app .action ("feedback_no" )(ack = respond_to_action , lazy = [feedback_handler ])
44+ app .command ("test" )(ack = respond_to_command , lazy = [feedback_handler ])
4445 for i in range (1 , 10 ):
4546 app .action (f"cite_{ i } " )(ack = respond_to_action , lazy = [feedback_handler ])
4647
@@ -64,6 +65,11 @@ def respond_to_action(ack: Ack):
6465 ack ()
6566
6667
68+ def respond_to_command (ack : Ack ):
69+ logger .debug ("Sending ack response" )
70+ ack ()
71+
72+
6773def feedback_handler (body : Dict [str , Any ], client : WebClient ) -> None :
6874 """Handle feedback button clicks (both positive and negative)."""
6975 try :
You can’t perform that action at this time.
0 commit comments