lunarflu HF Staff commited on
Commit
7a399c9
·
1 Parent(s): 9114452

[MyClient] fixing previous error

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -152,14 +152,16 @@ class MyClient(discord.Client):
152
  with open(combined_image_path, 'rb') as f:
153
  sent_message = await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
154
 
155
- self.desired_messages[message.author.id] = sent_message.id
 
 
156
 
157
  except Exception as e:
158
  print(f'An error occurred while processing the message: {e}')
159
  await message.reply('An error occurred during stage 1.')
160
 
161
 
162
- await bot_react(sent_message)
163
  #-------------------------------------------------------------------------------------------------------------
164
  async def on_reaction_add(self, reaction, user):
165
  try:
 
152
  with open(combined_image_path, 'rb') as f:
153
  sent_message = await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
154
 
155
+ self.desired_messages[message.author.id] = sent_message.id
156
+
157
+ await bot_react(sent_message)
158
 
159
  except Exception as e:
160
  print(f'An error occurred while processing the message: {e}')
161
  await message.reply('An error occurred during stage 1.')
162
 
163
 
164
+
165
  #-------------------------------------------------------------------------------------------------------------
166
  async def on_reaction_add(self, reaction, user):
167
  try: