From 0f692def89b274cd526aa50bf28e919ab88b26ac Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 23 Sep 2021 20:11:58 -0400 Subject: [PATCH] oop 2.0 --- functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.js b/functions.js index 07d9f1d..f1cebda 100644 --- a/functions.js +++ b/functions.js @@ -135,6 +135,9 @@ const functions = { const finalPeriod = message.content.lastIndexOf('.'); if (finalPeriod < 0) { 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; } commandData.isCommand = true;