summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Charrier <max@puffer.fish>2024-11-09 09:43:53 +0100
committerMax Charrier <max@puffer.fish>2024-11-09 09:43:53 +0100
commite973d37e91b393090ffda50c5be4f58643f049cc (patch)
treedd5913976d70ccbee4949d95cacbef1ed69cbd56
parentbb027f19a6fc68028f7d8fcf25ec6610afce9990 (diff)
hotfix: disable shouldReply on ignored channels
Signed-off-by: Max Charrier <max@puffer.fish>
-rw-r--r--discordjs/src/index.mjs6
1 files changed, 3 insertions, 3 deletions
diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs
index f1c942c..43ae9f2 100644
--- a/discordjs/src/index.mjs
+++ b/discordjs/src/index.mjs
@@ -59,7 +59,7 @@ const specialChannels = [
"995243987948544090"
]
-const ignoredEveryoneChannels = [
+const ignoredChannels = [
"1055130476395909210"
]
@@ -92,7 +92,7 @@ const messageAction = async (message, ctx) => {
message.mentions.has(client.user)
);
- if (shouldReply) {
+ if (shouldReply && !ignoredChannels.includes(message.channelId)) {
let oldCounter = messageReplyCounter;
if (shouldReplyByTimestamp || shouldReplyByCounter) {
messageReplyCounter = 0;
@@ -110,7 +110,7 @@ const messageAction = async (message, ctx) => {
}
}
- if (message.content.includes("@everyone") && !ignoredEveryoneChannels.includes(message.channelId)) {
+ if (message.content.includes("@everyone") && !ignoredChannels.includes(message.channelId)) {
message.reply("https://cdn.mpgn.dev/pascontent-gabe.gif");
}
if (message.content.includes(" allo ")) {