if not item['url']:
del item['url']
- # Get the puzzle's name into the channel description
- set_channel_description(turb, item)
-
# Before launching into sheet creation, indicate that we're doing this
# in the database. This way, if we take too long to create the sheet
# and Slack retries the event, that next event will see this 'pending'
item['sheet_url'] = sheet['url']
puzzle_table.put_item(Item=item)
- # Message the channel with the URL of the puzzle's sheet
- turb.slack_client.chat_postMessage(channel=puzzle_channel_id,
- text="Sheet created for this puzzle: {}"
- .format(sheet['url']))
-
# Get the new sheet_url into the channel description
set_channel_description(turb, item)