await asyncio.gather(
Browse files
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
|
45 |
-
|
|
|
|
|
46 |
attachment = ctx.message.attachments[0]
|
47 |
return attachment
|
48 |
else:
|
49 |
-
await
|
50 |
-
|
|
|
|
|
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
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
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 |
|