fix4
Browse files
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)
|