Skip to content

Commit

Permalink
Spoiler support for Live preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaxakerhtc authored Mar 1, 2024
1 parent 265709d commit cfae091
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/stablecog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cfae091

Please sign in to comment.