mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
cum
This commit is contained in:
parent
2e734aca9c
commit
3d8040a7bc
1 changed files with 2 additions and 0 deletions
|
@ -1390,6 +1390,7 @@ class OtherCog(commands.Cog):
|
||||||
except (ConnectionError, httpx.HTTPError, httpx.NetworkError) as e:
|
except (ConnectionError, httpx.HTTPError, httpx.NetworkError) as e:
|
||||||
await _msg.edit(content="Failed to download text. " + str(e))
|
await _msg.edit(content="Failed to download text. " + str(e))
|
||||||
return
|
return
|
||||||
|
|
||||||
else:
|
else:
|
||||||
_msg = await interaction.followup.send("Converting text to MP3... (0 seconds elapsed)")
|
_msg = await interaction.followup.send("Converting text to MP3... (0 seconds elapsed)")
|
||||||
|
|
||||||
|
@ -1400,6 +1401,7 @@ class OtherCog(commands.Cog):
|
||||||
content=f"Converting text to MP3... ({time.time() - start_time:.1f} seconds elapsed)"
|
content=f"Converting text to MP3... ({time.time() - start_time:.1f} seconds elapsed)"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
start_time = time.time()
|
||||||
task = _bot.loop.create_task(assurance_task())
|
task = _bot.loop.create_task(assurance_task())
|
||||||
try:
|
try:
|
||||||
mp3, size = await asyncio.wait_for(
|
mp3, size = await asyncio.wait_for(
|
||||||
|
|
Loading…
Reference in a new issue