from turbot.blocks import section_block, text_block, button_block, actions_block
def hunt_block(hunt):
- text = "{}: <#{}>".format(hunt['name'], hunt['channel_id'])
+ 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)
+
return section_block(text_block(text))
def home(turb, user_id, body):