From 06f9758bc2bdb0401eceaadefad429416635cfbb Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Wed, 21 Dec 2022 19:01:45 -0500 Subject: [PATCH] Ignore self messages --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 279690e..4b7314c 100644 --- a/main.js +++ b/main.js @@ -178,6 +178,7 @@ client.on('interactionCreate', async interaction => { client.on('messageCreate', message => { // Some basic checking to prevent running unnecessary code if (message.author.bot) return; + if (message.auther.id == client.user.id) return; // Wildcard Responses, will respond if any message contains the trigger word(s), excluding self-messages const lowerContent = message.content.toLowerCase();