diff --git a/functions.js b/functions.js index c3b5486..c3aa962 100644 --- a/functions.js +++ b/functions.js @@ -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); diff --git a/strings.json b/strings.json index 134d225..3cb89dc 100644 --- a/strings.json +++ b/strings.json @@ -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": {}