[dfif2] failure emoji test
Browse files
app.py
CHANGED
@@ -408,8 +408,11 @@ async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id
|
|
408 |
|
409 |
# using custom emoji that looks nicer
|
410 |
emoji_guild = thread.guild
|
411 |
-
|
412 |
-
|
|
|
|
|
|
|
413 |
|
414 |
# assuming dfif2 is always inside a thread, we can always exit the thread to find the channel with the original command,
|
415 |
# which allows us to react confirm on that message.
|
@@ -430,7 +433,13 @@ async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id
|
|
430 |
|
431 |
except Exception as e:
|
432 |
print(f"Error: {e}")
|
433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
#await ctx.reply('An error occured in stage 2') need to fix
|
435 |
#await ctx.message.add_reaction('❌')
|
436 |
#----------------------------------------------------------------------------------------------------------------------------
|
|
|
408 |
|
409 |
# using custom emoji that looks nicer
|
410 |
emoji_guild = thread.guild
|
411 |
+
success_emoji_id = 1098629085955113011
|
412 |
+
success_emoji = discord.utils.get(emoji_guild.emojis, id=success_emoji_id)
|
413 |
+
|
414 |
+
#disagree
|
415 |
+
|
416 |
|
417 |
# assuming dfif2 is always inside a thread, we can always exit the thread to find the channel with the original command,
|
418 |
# which allows us to react confirm on that message.
|
|
|
433 |
|
434 |
except Exception as e:
|
435 |
print(f"Error: {e}")
|
436 |
+
|
437 |
+
emoji_guild = thread.guild
|
438 |
+
failure_emoji_id = 1098628957521313892
|
439 |
+
failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
|
440 |
+
parent_channel = thread.parent
|
441 |
+
dfif_command_message = await parent_channel.fetch_message(dfif_command_message_id)
|
442 |
+
await dfif_command_message.add_reaction(failure_emoji)
|
443 |
#await ctx.reply('An error occured in stage 2') need to fix
|
444 |
#await ctx.message.add_reaction('❌')
|
445 |
#----------------------------------------------------------------------------------------------------------------------------
|