From: Carl Worth Date: Mon, 15 Nov 2021 23:52:22 +0000 (-0800) Subject: Fix "New Hunt" button to actually call new_hunt_button function X-Git-Url: https://git.cworth.org/git?p=turbot;a=commitdiff_plain;h=d1b27a68132b9e9a6e5b6ca0aaea1d4de222496a Fix "New Hunt" button to actually call new_hunt_button function Was previously calling new_hunt function directly which cannot work. --- diff --git a/turbot/interaction.py b/turbot/interaction.py index 580aad5..4a36b71 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -501,6 +501,7 @@ def new_hunt_command(turb, body): def new_hunt_button(turb, payload): """Handler for the action of user pressing the new_hunt button""" + print("In new_hunt_button with payload of: " + str(payload)) trigger_id = payload['trigger_id'] return new_hunt(turb, trigger_id) @@ -534,7 +535,7 @@ def new_hunt(turb, trigger_id): return lambda_ok -actions['button']['new_hunt'] = new_hunt +actions['button']['new_hunt'] = new_hunt_button def new_hunt_submission(turb, payload, metadata): """Handler for the user submitting the new hunt modal