This commit is contained in:
Skylar Grant 2021-09-23 20:11:58 -04:00
parent 0122e36781
commit 0f692def89

View File

@ -135,6 +135,9 @@ const functions = {
const finalPeriod = message.content.lastIndexOf('.'); const finalPeriod = message.content.lastIndexOf('.');
if (finalPeriod < 0) { if (finalPeriod < 0) {
commandData.isCommand = false; commandData.isCommand = false;
commandData.args = message.content.slice(0,finalPeriod).toLowerCase();
commandData.command = message.content.slice(finalPeriod).replace('.','').toLowerCase();
commandData.author = `${message.author.username}#${message.author.discriminator}`;
return commandData; return commandData;
} }
commandData.isCommand = true; commandData.isCommand = true;