fix fr
This commit is contained in:
parent
02f7c1a86b
commit
c59c3b610b
1 changed files with 9 additions and 9 deletions
|
@ -522,7 +522,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
|
|
||||||
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" ({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)
|
||||||
await ctx.send(f"```ini\nAjout de {track.title} à la file d'attente```", delete_after=15)
|
await ctx.send(f"```ini\nAjout de {track.title} à la file d'attente```", delete_after=15)
|
||||||
|
@ -612,7 +612,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
player.skip_votes.add(ctx.author)
|
player.skip_votes.add(ctx.author)
|
||||||
|
|
||||||
if len(player.skip_votes) >= required:
|
if len(player.skip_votes) >= required:
|
||||||
await ctx.send("Vote pour passer le son adoptée.", delete_after=10)
|
await ctx.send("Passe le son à cause du vote.", delete_after=10)
|
||||||
player.skip_votes.clear()
|
player.skip_votes.clear()
|
||||||
await player.stop()
|
await player.stop()
|
||||||
else:
|
else:
|
||||||
|
@ -632,7 +632,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.is_privileged(ctx):
|
if self.is_privileged(ctx):
|
||||||
await ctx.send(f"{ctx.author.mention} a déconnecter le bot et supprimer la file d'attente.", delete_after=10)
|
await ctx.send(f"{ctx.author.mention} a déconnecté le bot et a supprimé la file d'attente.", delete_after=10)
|
||||||
return await player.teardown()
|
return await player.teardown()
|
||||||
|
|
||||||
required = self.required(ctx)
|
required = self.required(ctx)
|
||||||
|
@ -674,7 +674,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
|
|
||||||
@commands.command(aliases=['mix'])
|
@commands.command(aliases=['mix'])
|
||||||
async def shuffle(self, ctx: commands.Context, *, fromSlash = None):
|
async def shuffle(self, ctx: commands.Context, *, fromSlash = None):
|
||||||
"""Mélange les sons en file d'attente. (mini 3 sons en file d'attente)\n ➡ Syntaxe: {PREFIX}shuffle/mix"""
|
"""Mélange les sons en file d'attente. (minimum 3 sons en file d'attente)\n ➡ Syntaxe: {PREFIX}shuffle/mix"""
|
||||||
_, fromSlash, _ = isSlash(multipleArgsToTuple(_getframe(0)))
|
_, fromSlash, _ = isSlash(multipleArgsToTuple(_getframe(0)))
|
||||||
player: Player = self.bot.wavelink.get_player(guild_id=ctx.guild.id, cls=Player, context=ctx)
|
player: Player = self.bot.wavelink.get_player(guild_id=ctx.guild.id, cls=Player, context=ctx)
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
random.shuffle(player.queue._queue)
|
random.shuffle(player.queue._queue)
|
||||||
else:
|
else:
|
||||||
await mySendHidden(ctx, fromSlash, "Tu as voté pour mélanger la liste de lecture.", delete_after=15)
|
await mySendHidden(ctx, fromSlash, "Tu as voté pour mélanger la liste de lecture.", delete_after=15)
|
||||||
@cog_ext.cog_slash(name="shuffle", description = "Mélange les sons en file d'attente. (mini 3 sons en file d'attente)")
|
@cog_ext.cog_slash(name="shuffle", description = "Mélange les sons en file d'attente. (minimum 3 sons en file d'attente)")
|
||||||
async def _shuffle(self, ctx):
|
async def _shuffle(self, ctx):
|
||||||
return await self.shuffle(ctx = ctx, fromSlash = True)
|
return await self.shuffle(ctx = ctx, fromSlash = True)
|
||||||
|
|
||||||
|
@ -790,7 +790,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
|
|
||||||
@commands.command(aliases=['np', 'now_playing', 'current'])
|
@commands.command(aliases=['np', 'now_playing', 'current'])
|
||||||
async def nowplaying(self, ctx: commands.Context, *, fromSlash = None):
|
async def nowplaying(self, ctx: commands.Context, *, fromSlash = None):
|
||||||
"""Met à jour l'embed qui affiche les informations sur la chanson en cours.\n ➡ Syntaxe: {PREFIX}nowplaying/now_playing/current/np"""
|
"""Met à jour l'embed qui affiche les informations sur la chanson en cours si besoin.\n ➡ Syntaxe: {PREFIX}nowplaying/now_playing/current/np"""
|
||||||
_, fromSlash, _ = isSlash(multipleArgsToTuple(_getframe(0)))
|
_, fromSlash, _ = isSlash(multipleArgsToTuple(_getframe(0)))
|
||||||
player: Player = self.bot.wavelink.get_player(guild_id=ctx.guild.id, cls=Player, context=ctx)
|
player: Player = self.bot.wavelink.get_player(guild_id=ctx.guild.id, cls=Player, context=ctx)
|
||||||
|
|
||||||
|
@ -801,7 +801,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
await player.invoke_controller()
|
await player.invoke_controller()
|
||||||
if fromSlash:
|
if fromSlash:
|
||||||
await mySendHidden(ctx, fromSlash, "Mise à jour effectuée.")
|
await mySendHidden(ctx, fromSlash, "Mise à jour effectuée.")
|
||||||
@cog_ext.cog_slash(name="nowplaying", description = "Met à jour l'embed qui affiche les informations sur la chanson en cours.")
|
@cog_ext.cog_slash(name="nowplaying", description = "Met à jour l'embed qui affiche les informations sur la chanson en cours si besoin.")
|
||||||
async def _nowplaying(self, ctx,):
|
async def _nowplaying(self, ctx,):
|
||||||
return await self.nowplaying(ctx = ctx, fromSlash = True)
|
return await self.nowplaying(ctx = ctx, fromSlash = True)
|
||||||
|
|
||||||
|
@ -821,7 +821,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
members = self.bot.get_channel(int(player.channel_id)).members
|
members = self.bot.get_channel(int(player.channel_id)).members
|
||||||
|
|
||||||
if member and member not in members:
|
if member and member not in members:
|
||||||
return await mySendHidden(ctx, fromSlash, f"{member} n'est pas actuellement dans le salon, et ne peut donc pas être un DJ.", delete_after=15)
|
return await mySendHidden(ctx, fromSlash, f"{member} n'est actuellement pas dans le salon vocal, et ne peut donc pas devenir DJ.", delete_after=15)
|
||||||
|
|
||||||
if member and member == player.dj:
|
if member and member == player.dj:
|
||||||
return await mySendHidden(ctx, fromSlash, "Cette personne est déjà DJ.", delete_after=15)
|
return await mySendHidden(ctx, fromSlash, "Cette personne est déjà DJ.", delete_after=15)
|
||||||
|
@ -868,7 +868,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
||||||
premierembed = True
|
premierembed = True
|
||||||
if len(paroles) > 7500:
|
if len(paroles) > 7500:
|
||||||
await ctx.message.add_reaction(emoji = '❌')
|
await ctx.message.add_reaction(emoji = '❌')
|
||||||
return await message.edit(content = f"Désolé, les paroles sont trop longues pour être affichés (lien vers la page des paroles : {song_genius.url}).")
|
return await message.edit(content = f"Les paroles sont trop longues pour être affichés (lien vers la page des paroles : {song_genius.url}).")
|
||||||
title_first_embed = f"Paroles de {song_genius.title} par {song_genius.artist}."
|
title_first_embed = f"Paroles de {song_genius.title} par {song_genius.artist}."
|
||||||
desc_first_embed = f"[Lien vers les paroles sur le site]({song_genius.url})"
|
desc_first_embed = f"[Lien vers les paroles sur le site]({song_genius.url})"
|
||||||
type_de_comptage = "\n\n" if paroles.count("\n\n") > 2 else "\n"
|
type_de_comptage = "\n\n" if paroles.count("\n\n") > 2 else "\n"
|
||||||
|
|
Reference in a new issue