- # Create a Slack-channel-safe puzzle_id
- puzzle_id = puzzle_id_from_name(name)
-
- # Create a channel for the puzzle
- hunt_dash_channel = "{}-{}".format(hunt_id, puzzle_id)
-
- try:
- response = turb.slack_client.conversations_create(
- name=hunt_dash_channel)
- except SlackApiError as e:
- return submission_error(
- "name",
- "Error creating Slack channel {}: {}"
- .format(hunt_dash_channel, e.response['error']))
-
- channel_id = response['channel']['id']
-