summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Charrier <m@lilmaax.fr>2024-09-18 19:07:59 +0200
committerGitHub <noreply@github.com>2024-09-18 19:07:59 +0200
commit9ff5fc93e0378ae8e5fe2ed99b86851dba977099 (patch)
treec2cc9e0e69edb401319bf0d839b1ab18ef0e05e9
parent6a19522f137d331c443f79a0b19074cdbb4fb617 (diff)
do not send the gif if it is the user-displayed name
-rw-r--r--discordjs/src/index.mjs2
1 files changed, 1 insertions, 1 deletions
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>")) {