]> git.cworth.org Git - turbot/commitdiff
Drop handling of a "placeholder" value for channel_id
authorCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2020 11:03:54 +0000 (04:03 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2020 11:03:54 +0000 (04:03 -0700)
We're not using this anymore, (instead starting out with active=False
until the hunt is really up and running).

turbot/events.py

index 9c70e2e2c8cd0b695b15eee1a6281799320bc0d7..eff57786d252902847f79d548e3495ca6901eee2 100644 (file)
@@ -15,12 +15,7 @@ def hunt_block(hunt):
     name = hunt['name']
     channel_id = hunt['channel_id']
 
-    text = "{}: ".format(name)
-
-    if (channel_id.startswith("placeholder-")):
-        text += "[Slack channel is still being created. Please wait.]"
-    else:
-        text += "<#{}>".format(channel_id)
+    text = "{}: <#{}>".format(name, channel_id)
 
     return section_block(text_block(text))