[dfif2] success_emoji
Browse files
app.py
CHANGED
@@ -424,27 +424,10 @@ async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id
|
|
424 |
emoji_guild = thread.guild
|
425 |
success_emoji_id = 1098629085955113011
|
426 |
success_emoji = discord.utils.get(emoji_guild.emojis, id=success_emoji_id)
|
427 |
-
|
428 |
-
#disagree
|
429 |
-
|
430 |
-
|
431 |
-
# assuming dfif2 is always inside a thread, we can always exit the thread to find the channel with the original command,
|
432 |
-
# which allows us to react confirm on that message.
|
433 |
parent_channel = thread.parent
|
434 |
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
|
|
435 |
|
436 |
-
# reacting to original !deepfloydif command + using a custom emoji to do it
|
437 |
-
await dfif_command_message.add_reaction(confirm_emoji)
|
438 |
-
#await thread.send(f"✅upscale posted")
|
439 |
-
#await ctx.reply('Here is the result of the second stage', file=discord.File(f, 'result.png'))
|
440 |
-
#await ctx.message.add_reaction('✅') need to fix this
|
441 |
-
|
442 |
-
'''
|
443 |
-
try:
|
444 |
-
dfif_command_message = await channel.fetch_message(dfif_command_message_id)
|
445 |
-
await dfif_command_message.add_reaction('✅')
|
446 |
-
'''
|
447 |
-
|
448 |
except Exception as e:
|
449 |
print(f"Error: {e}")
|
450 |
|
|
|
424 |
emoji_guild = thread.guild
|
425 |
success_emoji_id = 1098629085955113011
|
426 |
success_emoji = discord.utils.get(emoji_guild.emojis, id=success_emoji_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}")
|
433 |
|