lunarflu commited on
Commit ·
69dff14
1
Parent(s): 834b337
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ async def active(ctx):
|
|
| 39 |
await ctx.message.reply(f'active threads: {activethreadcount}')
|
| 40 |
|
| 41 |
@bot.command()
|
| 42 |
-
async def jojo(ctx
|
| 43 |
|
| 44 |
# get the number of active threads
|
| 45 |
activethreadcount = active_count()
|
|
@@ -48,7 +48,7 @@ async def jojo(ctx, semaphore):
|
|
| 48 |
start_time = time.time()
|
| 49 |
attachment = await discord_before(ctx)
|
| 50 |
if attachment:
|
| 51 |
-
asyncio.create_task(generation(ctx, attachment, start_time
|
| 52 |
#await generation(ctx, attachment)
|
| 53 |
|
| 54 |
async def discord_before(ctx):
|
|
@@ -74,7 +74,7 @@ async def discord_before(ctx):
|
|
| 74 |
)
|
| 75 |
return None
|
| 76 |
|
| 77 |
-
async def generation(ctx, attachment, start_time
|
| 78 |
if attachment:
|
| 79 |
style = 'JoJo'
|
| 80 |
|
|
|
|
| 39 |
await ctx.message.reply(f'active threads: {activethreadcount}')
|
| 40 |
|
| 41 |
@bot.command()
|
| 42 |
+
async def jojo(ctx):
|
| 43 |
|
| 44 |
# get the number of active threads
|
| 45 |
activethreadcount = active_count()
|
|
|
|
| 48 |
start_time = time.time()
|
| 49 |
attachment = await discord_before(ctx)
|
| 50 |
if attachment:
|
| 51 |
+
asyncio.create_task(generation(ctx, attachment, start_time))
|
| 52 |
#await generation(ctx, attachment)
|
| 53 |
|
| 54 |
async def discord_before(ctx):
|
|
|
|
| 74 |
)
|
| 75 |
return None
|
| 76 |
|
| 77 |
+
async def generation(ctx, attachment, start_time):
|
| 78 |
if attachment:
|
| 79 |
style = 'JoJo'
|
| 80 |
|