From: Carl Worth Date: Thu, 22 Oct 2020 22:52:04 +0000 (-0700) Subject: Reduce the burst of noise from turbot on channel creation X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=1383e9f2164e1531541a50ddc607e213b6c80d60;p=turbot Reduce the burst of noise from turbot on channel creation This takes the number of messages it spews from 5 down to 2, so reducing a bunch of extraneous noise. --- diff --git a/turbot/events.py b/turbot/events.py index ca2fd71..c876b15 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -233,9 +233,6 @@ def puzzle_channel_created(turb, puzzle_channel_name, puzzle_channel_id): 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' @@ -250,11 +247,6 @@ def puzzle_channel_created(turb, puzzle_channel_name, puzzle_channel_id): 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)