From 1383e9f2164e1531541a50ddc607e213b6c80d60 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 22 Oct 2020 15:52:04 -0700 Subject: [PATCH] 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. --- turbot/events.py | 8 -------- 1 file changed, 8 deletions(-) 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) -- 2.43.0