From caefe0e228317fb87c1500a0056b3e6fedf4367f Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 14 Jun 2024 20:34:51 -0400 Subject: [PATCH] Fix silly replace method for getting command --- functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.js b/functions.js index 6b53169..0d87691 100644 --- a/functions.js +++ b/functions.js @@ -189,7 +189,7 @@ const functions = { // Get the first part of the message, everything leading up to the final period commandData.args = message.content.slice(0,finalPeriod).toLowerCase(); // Get the last part of the message, everything after the final period - commandData.command = message.content.slice(finalPeriod).replace('.','').toLowerCase(); + commandData.command = message.content.slice(finalPeriod + 1).toLowerCase(); commandData.author = `${message.author.username}`; return this.checkCommand(commandData); },