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); },