From 78b409c3c1a09eebd783a17d1dcf29358c479655 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 11:04:08 -0500 Subject: [PATCH] Change error embed footer, additional comments --- start.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/start.js b/start.js index f59d261..3c3169f 100644 --- a/start.js +++ b/start.js @@ -34,9 +34,11 @@ setInterval(() => { client.user.setActivity(statuses[index]); }, 20000); // Picks a status from the config file -client.on('message', message => { - if (!message.content.startsWith(prefix) || message.author.bot) return; +// Begin Command Handler +client.on('message', message => { + + if (!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase(); @@ -53,11 +55,11 @@ client.on('message', message => { "color": 13632027, "footer": { "icon_url": message.author.displayAvatarURL(), - "text": footerTxt + "text": footerTxt + " | Something went wrong! :(" } }; message.channel.send({ embed }); - // tries to run the executed command, if fails it will send a error msg with the error stack +// End Command Handler } });