test
This commit is contained in:
parent
cce68831e9
commit
640372959f
1 changed files with 6 additions and 1 deletions
|
@ -47,7 +47,12 @@ class Music(commands.Cog):
|
|||
|
||||
@commands.command()
|
||||
async def play(self, ctx, *, query: str):
|
||||
tracks = await self.client.wavelink.get_tracks(f"ytsearch:{query}")
|
||||
try:
|
||||
tracks = await self.client.wavelink.get_tracks(f"ytsearch:{query}")
|
||||
except:
|
||||
print("bug")
|
||||
self.start_nodes()
|
||||
self.play(ctx, query)
|
||||
|
||||
if not tracks:
|
||||
return await ctx.send("Je n'ai pas trouvé la musique demandé.")
|
||||
|
|
Reference in a new issue