From: Carl Worth Date: Wed, 12 Jan 2022 10:01:40 +0000 (-0800) Subject: Set hunt channel topic when initially creating the hunt X-Git-Url: https://git.cworth.org/git?p=turbot;a=commitdiff_plain;h=f39b04b9682bfc68d8f9e71576f144b4b7b0d79a Set hunt channel topic when initially creating the hunt And not just when editing the hunt after the fact. --- diff --git a/turbot/interaction.py b/turbot/interaction.py index 25307c2..5889c74 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -708,6 +708,9 @@ def new_hunt_submission(turb, payload, metadata): item['url'] = url turb.table.put_item(Item=item) + # Update channel topic and description + hunt_update_topic(turb, item) + # Invite the initiating user to the channel turb.slack_client.conversations_invite(channel=channel_id, users=user_id)