fix
This commit is contained in:
parent
194cdae224
commit
8d189bad4d
1 changed files with 3 additions and 3 deletions
|
@ -337,7 +337,6 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
else:
|
else:
|
||||||
self.url = "localhost" # localhost
|
self.url = "localhost" # localhost
|
||||||
|
|
||||||
print("Préparation des nodes Lavalink ...", end = " ")
|
|
||||||
self.bot.loop.create_task(self.start_nodes())
|
self.bot.loop.create_task(self.start_nodes())
|
||||||
|
|
||||||
async def start_nodes(self) -> None:
|
async def start_nodes(self) -> None:
|
||||||
|
@ -502,7 +501,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
await player.queue.put(track)
|
await player.queue.put(track)
|
||||||
|
|
||||||
lenghtTracks = len(tracks.tracks)
|
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)
|
f" avec {lenghtTracks} son{'s' if lenghtTracks > 1 else ''} à la file d'attente.```", delete_after=15)
|
||||||
else:
|
else:
|
||||||
track = Track(tracks[0].id, tracks[0].info, requester=ctx.author)
|
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)
|
eq = eqs.get(equalizer.lower(), None)
|
||||||
|
|
||||||
if not eq:
|
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 ctx.send(f"Changement de l'égaliseur en {equalizer}.", delete_after=15)
|
||||||
await player.set_eq(eq)
|
await player.set_eq(eq)
|
||||||
|
|
Reference in a new issue