[dfif] elif not png_files: await thread.send('png files are empty.')
Browse files
app.py
CHANGED
@@ -440,6 +440,8 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
440 |
with open(combined_image_path, 'rb') as f:
|
441 |
combined_image_dfif = await thread.send(f'{ctx.author.mention}React with the image number you want to upscale!', file=discord.File(
|
442 |
f, f'{partialpath}{dfif_command_message_id}.png')) # named something like: tmpgtv4qjix1111269940599738479.png
|
|
|
|
|
443 |
|
444 |
await thread.send(f'✅reacting with 1234...')
|
445 |
emoji_list = ['↖️', '↗️', '↙️', '↘️']
|
|
|
440 |
with open(combined_image_path, 'rb') as f:
|
441 |
combined_image_dfif = await thread.send(f'{ctx.author.mention}React with the image number you want to upscale!', file=discord.File(
|
442 |
f, f'{partialpath}{dfif_command_message_id}.png')) # named something like: tmpgtv4qjix1111269940599738479.png
|
443 |
+
elif not png_files:
|
444 |
+
await thread.send('png files are empty.')
|
445 |
|
446 |
await thread.send(f'✅reacting with 1234...')
|
447 |
emoji_list = ['↖️', '↗️', '↙️', '↘️']
|