lunarflu HF Staff commited on
Commit
06ddfd4
Β·
1 Parent(s): f42e7d1

await asyncio.sleep(0.5), await ctx.message.reply(f'active threads: {activethreadcount}')

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -33,9 +33,11 @@ bot = commands.Bot(command_prefix='!', intents=intents)
33
 
34
 
35
  @bot.command()
36
- async def lunar(ctx):
37
- await ctx.message.add_reaction('πŸ€–')
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