lunarflu HF Staff commited on
Commit
2943c89
·
1 Parent(s): 820ef6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -462,11 +462,12 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
462
  try:
463
  #ctx = await bot.get_context(reaction.message)
464
  # safety checks first ✅
465
- thread = reaction.message.channel
466
- threadparentid = thread.parent.id
467
 
468
  if not user.bot:
469
- if threadparentid == 1113182673859518514: # testing-the-bot
 
 
470
  # 811235357663297546 = lunarflu
471
  if reaction.message.attachments:
472
  if user.id == reaction.message.mentions[0].id: # if user.id == reaction.message.mentions[0].id:
@@ -504,13 +505,7 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
504
 
505
  except Exception as e:
506
  print(f"Error: {e} testing emoji behavior with reacts")
507
- '''
508
- emoji_guild = reaction.message.guild
509
- failure_emoji_id = 1098628957521313892
510
- failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
511
- await reaction.message.add_reaction(failure_emoji)
512
- await reaction.message.channel.send(f"Error during reactions.")
513
- '''
514
 
515
  #----------------------------------------------------------------------------------------------------------------------------
516
 
 
462
  try:
463
  #ctx = await bot.get_context(reaction.message)
464
  # safety checks first ✅
465
+
 
466
 
467
  if not user.bot:
468
+ thread = reaction.message.channel
469
+ threadparentid = thread.parent.id
470
+ if threadparentid == 1113182673859518514: # testing-the-bot, should be whatever the deepfloydif channel is
471
  # 811235357663297546 = lunarflu
472
  if reaction.message.attachments:
473
  if user.id == reaction.message.mentions[0].id: # if user.id == reaction.message.mentions[0].id:
 
505
 
506
  except Exception as e:
507
  print(f"Error: {e} testing emoji behavior with reacts")
508
+
 
 
 
 
 
 
509
 
510
  #----------------------------------------------------------------------------------------------------------------------------
511