Add f u nodbot response

This commit is contained in:
Skylar Grant 2024-06-21 15:11:34 -04:00
parent 7003351ecc
commit 99af5ca8b4
2 changed files with 24 additions and 0 deletions

View File

@ -655,6 +655,7 @@ const functions = {
if (this.bigDoinks(messageContent)) responses.push("bigDoinks");
if (this.ligma(messageContent)) responses.push("ligma");
if (this.ong(messageContent)) responses.push("ong");
if (this.fuckYou(messageContent)) responses.push("fuckYou");
return responses;
},
bigDoinks(messageContent) {
@ -687,6 +688,16 @@ const functions = {
return true;
}
},
fuckYou(messageContent) {
let count = 0;
const { keywords } = strings.autoresponses.fuckYou;
keywords.forEach(e => {
if (messageContent.includes(e)) count++;
});
if (count === keywords.length) {
return true;
}
},
send(message, responseType) {
const { responses } = strings.autoresponses[responseType];
const randomIndex = Math.floor(Math.random() * responses.length);

View File

@ -65,6 +65,19 @@
"bussin fr, no cap",
"ongggg no :billed_cap: fr fr"
]
},
"fuckYou": {
"keywords": [
"fuck",
"nodbot"
],
"responses": [
"no u",
"go fuck yourself",
"why does everyone hate me :sob:",
"<:kms:310190799784509441>",
"Eat a bag of dicks"
]
}
},
"temp": {}