await asyncio.sleep(0.5), await ctx.message.reply(f'active threads: {activethreadcount}')
Browse files
app.py
CHANGED
@@ -33,9 +33,11 @@ bot = commands.Bot(command_prefix='!', intents=intents)
|
|
33 |
|
34 |
|
35 |
@bot.command()
|
36 |
-
async def
|
37 |
-
|
38 |
-
|
|
|
|
|
39 |
@bot.command()
|
40 |
async def jojo(ctx):
|
41 |
|
@@ -53,6 +55,7 @@ async def discord_before(ctx):
|
|
53 |
if ctx.message.attachments:
|
54 |
await asyncio.gather(
|
55 |
ctx.message.add_reaction('π€'),
|
|
|
56 |
ctx.message.add_reaction('β')
|
57 |
)
|
58 |
attachment = ctx.message.attachments[0]
|
@@ -66,6 +69,7 @@ async def discord_before(ctx):
|
|
66 |
else:
|
67 |
await asyncio.gather(
|
68 |
ctx.send(f"{ctx.author.mention} No attachments to be found... Can't animify dat! Try sending me an image π"),
|
|
|
69 |
ctx.message.add_reaction('β')
|
70 |
)
|
71 |
return None
|
@@ -84,8 +88,11 @@ async def generation(ctx, attachment):
|
|
84 |
|
85 |
await asyncio.gather(
|
86 |
ctx.send(f'{ctx.author.mention} Here is the jojo version of it'),
|
|
|
87 |
ctx.send(file=discord.File(im)),
|
|
|
88 |
ctx.message.remove_reaction('β', bot.user),
|
|
|
89 |
ctx.message.add_reaction('β
')
|
90 |
)
|
91 |
|
|
|
33 |
|
34 |
|
35 |
@bot.command()
|
36 |
+
async def active(ctx):
|
37 |
+
# get the number of active threads
|
38 |
+
activethreadcount = active_count()
|
39 |
+
await ctx.message.reply(f'active threads: {activethreadcount}')
|
40 |
+
|
41 |
@bot.command()
|
42 |
async def jojo(ctx):
|
43 |
|
|
|
55 |
if ctx.message.attachments:
|
56 |
await asyncio.gather(
|
57 |
ctx.message.add_reaction('π€'),
|
58 |
+
await 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 |
+
await 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 |
+
await asyncio.sleep(0.5)
|
92 |
ctx.send(file=discord.File(im)),
|
93 |
+
await asyncio.sleep(0.5)
|
94 |
ctx.message.remove_reaction('β', bot.user),
|
95 |
+
await asyncio.sleep(0.5)
|
96 |
ctx.message.add_reaction('β
')
|
97 |
)
|
98 |
|