Update app.py
Browse files
app.py
CHANGED
@@ -427,6 +427,7 @@ async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id
|
|
427 |
parent_channel = thread.parent
|
428 |
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
429 |
await dfif_command_message.add_reaction(success_emoji)
|
|
|
430 |
|
431 |
except Exception as e:
|
432 |
print(f"Error: {e}")
|
@@ -436,7 +437,8 @@ async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id
|
|
436 |
failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
|
437 |
parent_channel = thread.parent
|
438 |
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
439 |
-
await dfif_command_message.add_reaction(failure_emoji)
|
|
|
440 |
await thread.send(f"Error during stage 2 upscaling.")
|
441 |
#----------------------------------------------------------------------------------------------------------------------------
|
442 |
# react detector for stage 2 ✅
|
|
|
427 |
parent_channel = thread.parent
|
428 |
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
429 |
await dfif_command_message.add_reaction(success_emoji)
|
430 |
+
await ctx.message.remove_reaction('⏳')
|
431 |
|
432 |
except Exception as e:
|
433 |
print(f"Error: {e}")
|
|
|
437 |
failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
|
438 |
parent_channel = thread.parent
|
439 |
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
440 |
+
await dfif_command_message.add_reaction(failure_emoji)
|
441 |
+
await ctx.message.remove_reaction('⏳')
|
442 |
await thread.send(f"Error during stage 2 upscaling.")
|
443 |
#----------------------------------------------------------------------------------------------------------------------------
|
444 |
# react detector for stage 2 ✅
|