lunarflu HF Staff commited on
Commit
983ccd4
·
1 Parent(s): ba577dd

added awaits

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -101,19 +101,19 @@ async def deepfloydif(ctx, *, prompt: str):
101
 
102
  reaction, user = await bot.wait_for('reaction_add', check=check_reaction)
103
  if str(reaction.emoji) == '1️⃣':
104
- ctx.send("You chose the first image!")
105
  index = 0
106
  await dfif2(ctx, index, stage_1_result_path)
107
  elif str(reaction.emoji) == '2️⃣':
108
- ctx.send("You chose the second image!")
109
  index = 1
110
  await dfif2(ctx, index, stage_1_result_path)
111
  elif str(reaction.emoji) == '3️⃣':
112
- ctx.send("You chose the third image!")
113
  index = 2
114
  await dfif2(ctx, index, stage_1_result_path)
115
  elif str(reaction.emoji) == '4️⃣':
116
- ctx.send("You chose the fourth image!")
117
  index = 3
118
  await dfif2(ctx, index, stage_1_result_path)
119
 
 
101
 
102
  reaction, user = await bot.wait_for('reaction_add', check=check_reaction)
103
  if str(reaction.emoji) == '1️⃣':
104
+ await ctx.send("You chose the first image!")
105
  index = 0
106
  await dfif2(ctx, index, stage_1_result_path)
107
  elif str(reaction.emoji) == '2️⃣':
108
+ await ctx.send("You chose the second image!")
109
  index = 1
110
  await dfif2(ctx, index, stage_1_result_path)
111
  elif str(reaction.emoji) == '3️⃣':
112
+ await ctx.send("You chose the third image!")
113
  index = 2
114
  await dfif2(ctx, index, stage_1_result_path)
115
  elif str(reaction.emoji) == '4️⃣':
116
+ await ctx.send("You chose the fourth image!")
117
  index = 3
118
  await dfif2(ctx, index, stage_1_result_path)
119