remove parenthesis in the is playing state in lyrics
This commit is contained in:
parent
f46165da55
commit
5ca258ef4f
1 changed files with 2 additions and 2 deletions
|
@ -496,7 +496,7 @@ class Music(commands.Cog):
|
||||||
"""Affiche les paroles de la musique en cours, ou de la chanson spécifiée.\n ➡ Syntaxe: {PREFIX}lyrics/lyric/l (musique)"""
|
"""Affiche les paroles de la musique en cours, ou de la chanson spécifiée.\n ➡ Syntaxe: {PREFIX}lyrics/lyric/l (musique)"""
|
||||||
if song or ctx.voice_state.is_playing:
|
if song or ctx.voice_state.is_playing:
|
||||||
if not song:
|
if not song:
|
||||||
song = f"{ctx.voice_state.current.title()}"
|
song = sub(r"(\ )?\(.*\)", "", ctx.voice_state.current.title())
|
||||||
if " romanized" in song:
|
if " romanized" in song:
|
||||||
message = await ctx.send(f":mag: **Cherche les paroles romanisées de ** `{song.replace(' romanized', '')}`")
|
message = await ctx.send(f":mag: **Cherche les paroles romanisées de ** `{song.replace(' romanized', '')}`")
|
||||||
else:
|
else:
|
||||||
|
@ -554,5 +554,5 @@ class Music(commands.Cog):
|
||||||
@commands.command(name='lyricsromanized', aliases = ['lr', 'lyricromanized'], hidden = True)
|
@commands.command(name='lyricsromanized', aliases = ['lr', 'lyricromanized'], hidden = True)
|
||||||
async def _lyricsromanized(self, ctx, *, song: str = None):
|
async def _lyricsromanized(self, ctx, *, song: str = None):
|
||||||
if not song and ctx.voice_state.is_playing:
|
if not song and ctx.voice_state.is_playing:
|
||||||
song = f"{ctx.voice_state.current.title()}"
|
song = sub(r"(\ )?\(.*\)", "", ctx.voice_state.current.title())
|
||||||
await ctx.invoke(self.client.get_command("lyrics"), song = f"{song} romanized" if song else song)
|
await ctx.invoke(self.client.get_command("lyrics"), song = f"{song} romanized" if song else song)
|
||||||
|
|
Reference in a new issue