summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autofeur_db/src/trie.rs2
-rw-r--r--discordjs/src/index.mjs6
2 files changed, 4 insertions, 4 deletions
diff --git a/autofeur_db/src/trie.rs b/autofeur_db/src/trie.rs
index 2359d2d..fbd392a 100644
--- a/autofeur_db/src/trie.rs
+++ b/autofeur_db/src/trie.rs
@@ -125,7 +125,7 @@ impl<'a> Trie<'a> {
.iter()
.nth(weighted.sample(&mut rng))
.expect("choosed value did not exist");
- println!("waling into node {}", key);
+ println!("walking into node {}", key);
current_node = node;
builder += key;
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 ")) {