Skip to content

Commit f7f579a

Browse files
authored
fix: support other languages
1 parent 1add97b commit f7f579a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/minecraft/MinecraftManager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ class MinecraftManager extends CommunicationBridge {
5858
}
5959

6060
if (config.discord.other.filterMessages) {
61-
message = filter.clean(message);
62-
username = filter.clean(username);
61+
try {
62+
message = filter.clean(message);
63+
username = filter.clean(username);
64+
} catch (error) {
65+
// Do nothing
66+
}
6367
}
6468

6569
message = replaceVariables(config.minecraft.bot.messageFormat, { username, message });

0 commit comments

Comments
 (0)