Ignore self messages

This commit is contained in:
Skylar Grant 2022-12-21 19:01:45 -05:00
parent c46d183608
commit 06f9758bc2

View File

@ -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();