This commit is contained in:
Mylloon 2021-08-07 01:26:35 +02:00
parent cce68831e9
commit 640372959f

View file

@ -47,7 +47,12 @@ class Music(commands.Cog):
@commands.command()
async def play(self, ctx, *, query: str):
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é.")