diff --git a/build-number.txt b/build-number.txt index c4176e46..222272ad 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -1485 \ No newline at end of file +1488 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java index bb13a694..7b667b28 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java @@ -347,6 +347,10 @@ public class DiscordPlugin { message.getContentDisplay() // replaces skull emoji .replace("\uD83D\uDC80", "☠") + // replaces all ANSI codes (used when a user reply to the bot's log message) with nothing + .replaceAll("\u001B\\[[;\\d]*[ -/]*[@-~]", "") + // replaces all ZWSP with nothing + .replace("\u200b", "") ); final Component messageComponent = Component