Fix silly replace method for getting command

This commit is contained in:
Skylar Grant 2024-06-14 20:34:51 -04:00
parent 928f12fe01
commit caefe0e228
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ const functions = {
// Get the first part of the message, everything leading up to the final period // Get the first part of the message, everything leading up to the final period
commandData.args = message.content.slice(0,finalPeriod).toLowerCase(); commandData.args = message.content.slice(0,finalPeriod).toLowerCase();
// Get the last part of the message, everything after the final period // 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}`; commandData.author = `${message.author.username}`;
return this.checkCommand(commandData); return this.checkCommand(commandData);
}, },