Add f u nodbot response
This commit is contained in:
parent
7003351ecc
commit
99af5ca8b4
11
functions.js
11
functions.js
@ -655,6 +655,7 @@ const functions = {
|
|||||||
if (this.bigDoinks(messageContent)) responses.push("bigDoinks");
|
if (this.bigDoinks(messageContent)) responses.push("bigDoinks");
|
||||||
if (this.ligma(messageContent)) responses.push("ligma");
|
if (this.ligma(messageContent)) responses.push("ligma");
|
||||||
if (this.ong(messageContent)) responses.push("ong");
|
if (this.ong(messageContent)) responses.push("ong");
|
||||||
|
if (this.fuckYou(messageContent)) responses.push("fuckYou");
|
||||||
return responses;
|
return responses;
|
||||||
},
|
},
|
||||||
bigDoinks(messageContent) {
|
bigDoinks(messageContent) {
|
||||||
@ -687,6 +688,16 @@ const functions = {
|
|||||||
return true;
|
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) {
|
send(message, responseType) {
|
||||||
const { responses } = strings.autoresponses[responseType];
|
const { responses } = strings.autoresponses[responseType];
|
||||||
const randomIndex = Math.floor(Math.random() * responses.length);
|
const randomIndex = Math.floor(Math.random() * responses.length);
|
||||||
|
13
strings.json
13
strings.json
@ -65,6 +65,19 @@
|
|||||||
"bussin fr, no cap",
|
"bussin fr, no cap",
|
||||||
"ongggg no :billed_cap: fr fr"
|
"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": {}
|
"temp": {}
|
||||||
|
Loading…
Reference in New Issue
Block a user