]> git.puffer.fish Git - matthieu/gru.git/commitdiff
do not send the gif if it is the user-displayed name
authorMax Charrier <m@lilmaax.fr>
Wed, 18 Sep 2024 17:07:59 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 17:07:59 +0000 (19:07 +0200)
discordjs/src/index.mjs

index 254af41437643605e5ec49497f29548d708564db..4e6cd67f69803840169fa5b023fd2519afbb085d 100644 (file)
@@ -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>")) {