This commit is contained in:
Mylloon 2021-08-16 09:44:28 +02:00
parent 194cdae224
commit 8d189bad4d

View file

@ -337,7 +337,6 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
else:
self.url = "localhost" # localhost
print("Préparation des nodes Lavalink ...", end = " ")
self.bot.loop.create_task(self.start_nodes())
async def start_nodes(self) -> None:
@ -502,7 +501,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
await player.queue.put(track)
lenghtTracks = len(tracks.tracks)
await ctx.send(f"```ini\nAjout de la playlist {tracks.data["playlistInfo"]["name"]}"
await ctx.send(f"```ini\nAjout de la playlist {tracks.data['playlistInfo']['name']}"
f" avec {lenghtTracks} son{'s' if lenghtTracks > 1 else ''} à la file d'attente.```", delete_after=15)
else:
track = Track(tracks[0].id, tracks[0].info, requester=ctx.author)
@ -705,7 +704,8 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
eq = eqs.get(equalizer.lower(), None)
if not eq:
return await ctx.send(f"EQ non valide fourni. EQs valides :\n\n{'\n'.join(eqs.keys())}")
joined = "\n".join(eqs.keys())
return await ctx.send(f"EQ non valide fourni. EQs valides :\n\n{joined}")
await ctx.send(f"Changement de l'égaliseur en {equalizer}.", delete_after=15)
await player.set_eq(eq)