]> git.cworth.org Git - turbot/commitdiff
Set hunt channel topic when initially creating the hunt
authorCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 10:01:40 +0000 (02:01 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 19:24:21 +0000 (11:24 -0800)
And not just when editing the hunt after the fact.

turbot/interaction.py

index 25307c22a26aec26084da1b623ebaee2acec069f..5889c74a299bdc0a89d564dc578328fef14de9b1 100644 (file)
@@ -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)