From 9ff5fc93e0378ae8e5fe2ed99b86851dba977099 Mon Sep 17 00:00:00 2001 From: Max Charrier Date: Wed, 18 Sep 2024 19:07:59 +0200 Subject: [PATCH] do not send the gif if it is the user-displayed name --- discordjs/src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs index 254af41..4e6cd67 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -79,7 +79,7 @@ const messageAction = async (message) => { } } - if (message.cleanContent.includes("@everyone") && !ignoredEveryoneChannels.includes(message.channelId)) { + if (message.cleanContent.includes("@everyone") && !ignoredEveryoneChannels.includes(message.channelId) && !message.author.displayName.includes("everyone")) { message.reply("https://cdn.mpgn.dev/pascontent-gabe.gif"); } if (message.content.includes("<:quoi:1061204752542748742>")) { -- 2.39.5