lunarflu HF Staff commited on
Commit
3189729
Β·
1 Parent(s): 85b6226

await asyncio.gather(

Browse files
Files changed (1) hide show
  1. app.py +15 -8
app.py CHANGED
@@ -41,13 +41,17 @@ async def process_jojo(ctx, attachment):
41
 
42
  async def discord_before(ctx):
43
  if ctx.message.attachments:
44
- await ctx.message.add_reaction('πŸ€–')
45
- await ctx.message.add_reaction('βŒ›')
 
 
46
  attachment = ctx.message.attachments[0]
47
  return attachment
48
  else:
49
- await ctx.send(f"{ctx.author.mention} No attachments to be found... Can't animify dat! Try sending me an image πŸ˜‰")
50
- await ctx.message.add_reaction('❌')
 
 
51
  return None
52
 
53
  async def generation(attachment):
@@ -57,10 +61,13 @@ async def generation(attachment):
57
  return im
58
 
59
  async def discord_after(ctx, im):
60
- await ctx.send(f'{ctx.author.mention} Here is the jojo version of it')
61
- await ctx.send(file=discord.File(im))
62
- await ctx.message.remove_reaction('βŒ›', bot.user)
63
- await ctx.message.add_reaction('βœ…')
 
 
 
64
 
65
 
66
 
 
41
 
42
  async def discord_before(ctx):
43
  if ctx.message.attachments:
44
+ await asyncio.gather(
45
+ ctx.message.add_reaction('πŸ€–')
46
+ ctx.message.add_reaction('βŒ›')
47
+ )
48
  attachment = ctx.message.attachments[0]
49
  return attachment
50
  else:
51
+ await asyncio.gather(
52
+ ctx.send(f"{ctx.author.mention} No attachments to be found... Can't animify dat! Try sending me an image πŸ˜‰")
53
+ ctx.message.add_reaction('❌')
54
+ )
55
  return None
56
 
57
  async def generation(attachment):
 
61
  return im
62
 
63
  async def discord_after(ctx, im):
64
+ await asyncio.gather(
65
+ ctx.send(f'{ctx.author.mention} Here is the jojo version of it')
66
+ ctx.send(file=discord.File(im)),
67
+ ctx.message.remove_reaction('βŒ›', bot.user),
68
+ ctx.message.add_reaction('βœ…')
69
+ )
70
+
71
 
72
 
73