Added escaping for bold
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
5bd2e7bbe9
commit
d4d6f4a228
@ -30,7 +30,10 @@ public class Quote extends Command {
|
|||||||
if (quote == null)
|
if (quote == null)
|
||||||
embed.setDescription("We don't have any quote in that language right now! Sorry!").setColor(Color.ORANGE);
|
embed.setDescription("We don't have any quote in that language right now! Sorry!").setColor(Color.ORANGE);
|
||||||
else {
|
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.setFooter(quote.getMovie().toString(), null);
|
||||||
embed.setColor(Color.MEDIUM_SEA_GREEN);
|
embed.setColor(Color.MEDIUM_SEA_GREEN);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user