mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
fix yt-dl-beta overrun
This commit is contained in:
parent
58936ab4ae
commit
abae7ea979
1 changed files with 7 additions and 5 deletions
|
@ -1331,11 +1331,13 @@ class OtherCog(commands.Cog):
|
|||
await ctx.channel.trigger_typing()
|
||||
embed.description = _desc
|
||||
await ctx.edit(embed=embed, files=files)
|
||||
async def bgtask():
|
||||
await asyncio.sleep(120.0)
|
||||
try:
|
||||
await ctx.edit(embed=None)
|
||||
except discord.NotFound:
|
||||
pass
|
||||
self.bot.loop.create_task(bgtask())
|
||||
|
||||
@commands.slash_command(name="text-to-mp3")
|
||||
@commands.cooldown(5, 600, commands.BucketType.user)
|
||||
|
|
Loading…
Reference in a new issue