lunarflu HF Staff commited on
Commit
fe7da19
Β·
1 Parent(s): ab6fd0b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,8 +151,8 @@ async def on_reaction_add(reaction, user):
151
  emoji = reaction.emoji
152
 
153
  if emoji == 'πŸ‘':
154
- if message.attachments:
155
- if user.id == message.mentions[0].id: # all we care about is upscaling whatever image this is
156
  stage_1_result_path = "/tmp/s1rp"
157
  attachment_path = os.path.join(stage_1_result_path, attachment.filename)
158
  await attachment.save(attachment_path)
 
151
  emoji = reaction.emoji
152
 
153
  if emoji == 'πŸ‘':
154
+ if reaction.message.attachments:
155
+ if user.id == reaction.message.mentions[0].id: # all we care about is upscaling whatever image this is
156
  stage_1_result_path = "/tmp/s1rp"
157
  attachment_path = os.path.join(stage_1_result_path, attachment.filename)
158
  await attachment.save(attachment_path)