fix(?) backslash crashing the vm

This commit is contained in:
virginhostel 2024-09-07 19:05:22 -04:00
parent 888a4ef01c
commit bb30a52357

View file

@ -231,7 +231,7 @@ class HelperBot extends CollabVMClient {
if (username == this.GetUsername()) return;
if (message[0] === config.BOT_PREFIX) {
this.HandleCommands(username, message);
this.HandleCommands(username, message.replaceAll("\\", "\\\\")); // thanks js
}
}
@ -296,7 +296,7 @@ class HelperBot extends CollabVMClient {
if (message.indexOf(" ") !== -1)
command = message.slice(1, message.indexOf(" "));
else command = message.slice(1);
switch (command) {
case "help":
if (!DoLimit(this.GeneralCmdLimit!)) return;