fixed censorship

This commit is contained in:
Mylloon 2021-08-20 08:22:24 +02:00
parent 9b5bd90964
commit ccc738f901

View file

@ -962,6 +962,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
await addReaction(ctx.message, 2) await addReaction(ctx.message, 2)
return await message.edit(content = f"Pas de résultats trouvés pour `{song}`.") return await message.edit(content = f"Pas de résultats trouvés pour `{song}`.")
paroles = re.sub(r"3?EmbedShare URLCopyEmbedCopy", "", paroles) # Fix temporaire bug Genius paroles = re.sub(r"3?EmbedShare URLCopyEmbedCopy", "", paroles) # Fix temporaire bug Genius
paroles = re.sub(r"\*\*\*\**", "\*\*\*", paroles) # Fix des *** dans les chansons Genius
lignetotal = "" lignetotal = ""
premierembed = True premierembed = True
if len(paroles) > 7500: if len(paroles) > 7500:
@ -987,7 +988,7 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
embed = discord.Embed(description = lignetotal, color = couleur_embed) embed = discord.Embed(description = lignetotal, color = couleur_embed)
await ctx.send(embed = embed) await ctx.send(embed = embed)
lignetotal = f"{ligneFormatage(ligne)}" lignetotal = f"{ligneFormatage(ligne)}"
temps_requete = int(round(nowCustom() * 1000)) - temps_requete temps_requete = int(round(nowCustom() * 1000)) - temps_requete
footer_embed = f"Pour {userOrNick(ctx.author)} par Genius en {round(temps_requete / 1000, 2)} s." footer_embed = f"Pour {userOrNick(ctx.author)} par Genius en {round(temps_requete / 1000, 2)} s."
await addReaction(ctx.message, 0) await addReaction(ctx.message, 0)