diff --git a/core/stablecog.py b/core/stablecog.py index 25307e8..b71de84 100644 --- a/core/stablecog.py +++ b/core/stablecog.py @@ -38,7 +38,11 @@ async def update_progress(event_loop, status_message_task, s, queue_object, trie buffer = stack.enter_context(io.BytesIO()) image.save(buffer, 'PNG') buffer.seek(0) - file = discord.File(fp=buffer, filename=f'{queue_object.seed}.png') + filename=f'{queue_object.seed}.png' + if queue_object.spoiler: + filename=f'SPOILER_{queue_object.seed}.png' + fp=buffer + file = discord.File(fp, filename) ips = '?' if progress_data["eta_relative"] != 0: