Added escaping for bold

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-30 17:48:33 +01:00
parent 5bd2e7bbe9
commit d4d6f4a228

View File

@ -30,7 +30,10 @@ public class Quote extends Command {
if (quote == null)
embed.setDescription("We don't have any quote in that language right now! Sorry!").setColor(Color.ORANGE);
else {
embed.setDescription(quote.getSubtitleBlock().getDialogue().replaceAll("<i>|</i>", "*"));
embed.setDescription(quote.getSubtitleBlock().getDialogue()
.replaceAll("<i>|</i>", "*")
.replaceAll("<b>|</b>", "**")
);
embed.setFooter(quote.getMovie().toString(), null);
embed.setColor(Color.MEDIUM_SEA_GREEN);
}