From: Max Charrier Date: Wed, 18 Sep 2024 17:07:59 +0000 (+0200) Subject: do not send the gif if it is the user-displayed name X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9ff5fc93e0378ae8e5fe2ed99b86851dba977099;p=matthieu%2Fgru.git do not send the gif if it is the user-displayed name --- 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>")) {