Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ async def discord_before(ctx):
|
|
| 55 |
if ctx.message.attachments:
|
| 56 |
await asyncio.gather(
|
| 57 |
ctx.message.add_reaction('π€'),
|
| 58 |
-
|
| 59 |
ctx.message.add_reaction('β')
|
| 60 |
)
|
| 61 |
attachment = ctx.message.attachments[0]
|
|
@@ -69,7 +69,7 @@ async def discord_before(ctx):
|
|
| 69 |
else:
|
| 70 |
await asyncio.gather(
|
| 71 |
ctx.send(f"{ctx.author.mention} No attachments to be found... Can't animify dat! Try sending me an image π"),
|
| 72 |
-
|
| 73 |
ctx.message.add_reaction('β')
|
| 74 |
)
|
| 75 |
return None
|
|
@@ -88,11 +88,11 @@ async def generation(ctx, attachment):
|
|
| 88 |
|
| 89 |
await asyncio.gather(
|
| 90 |
ctx.send(f'{ctx.author.mention} Here is the jojo version of it'),
|
| 91 |
-
|
| 92 |
ctx.send(file=discord.File(im)),
|
| 93 |
-
|
| 94 |
ctx.message.remove_reaction('β', bot.user),
|
| 95 |
-
|
| 96 |
ctx.message.add_reaction('β
')
|
| 97 |
)
|
| 98 |
|
|
|
|
| 55 |
if ctx.message.attachments:
|
| 56 |
await asyncio.gather(
|
| 57 |
ctx.message.add_reaction('π€'),
|
| 58 |
+
asyncio.sleep(0.5),
|
| 59 |
ctx.message.add_reaction('β')
|
| 60 |
)
|
| 61 |
attachment = ctx.message.attachments[0]
|
|
|
|
| 69 |
else:
|
| 70 |
await asyncio.gather(
|
| 71 |
ctx.send(f"{ctx.author.mention} No attachments to be found... Can't animify dat! Try sending me an image π"),
|
| 72 |
+
asyncio.sleep(0.5),
|
| 73 |
ctx.message.add_reaction('β')
|
| 74 |
)
|
| 75 |
return None
|
|
|
|
| 88 |
|
| 89 |
await asyncio.gather(
|
| 90 |
ctx.send(f'{ctx.author.mention} Here is the jojo version of it'),
|
| 91 |
+
asyncio.sleep(0.5),
|
| 92 |
ctx.send(file=discord.File(im)),
|
| 93 |
+
asyncio.sleep(0.5),
|
| 94 |
ctx.message.remove_reaction('β', bot.user),
|
| 95 |
+
asyncio.sleep(0.5),
|
| 96 |
ctx.message.add_reaction('β
')
|
| 97 |
)
|
| 98 |
|