From 2e6943b67885319b384aa2f5e22c862f42dac84e Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 25 Jun 2023 16:19:53 -0500 Subject: [PATCH] Maci is not exempt from this bot. --- main.cjs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/main.cjs b/main.cjs index b2ab31e..1c2c3db 100644 --- a/main.cjs +++ b/main.cjs @@ -10,7 +10,7 @@ global.madlibState = { gameChannel: undefined, storyTitle:undefined, currentStor //Get number of stories const madlib = require("./madlibs/stories.json"); global.madlibState.numberOfStories = Object.keys(madlib.stories).length; - +var triggeredByMaci = false; global.tylerStop = function tylerStop(message) { if (!message.author.bot && message.author.id == "205475706296205312" && message.content.toLowerCase().includes('idiot')) { message.react('<:amgery:1072270900675739758>'); @@ -108,13 +108,19 @@ function matchAbbr(abbrTarget) { } function replyMessage(message, correctedMessage, abbrsUsed) { + if (triggeredByMaci) { + var replyString = "Hi <@732679176565293156>! You're the reason why I exist! You can't stop me with just a role! >:D" + triggeredByMaci = false; + } else { + var replyString = ""; + } var plural = ""; if (abbrsUsed == 1) { plural = "an acronym"; } else { plural = abbrsUsed + " acronyms" } - var replyString = "Your message contains " + plural + "! Let me fix that for you: \n"+ " \|\|btw I was written by Caleb Fontenot\|\| \n \n" + blockQuote(correctedMessage); + replyString += "Your message contains " + plural + "! Let me fix that for you: \n"+ " \|\|btw I was written by Caleb Fontenot\|\| \n \n" + blockQuote(correctedMessage); var stringLength = replyString.length; if (stringLength > 2000) { @@ -241,6 +247,10 @@ function checkIfExempt(message) { } else if (message.content.includes("```")) { return true; } + if(message.author.id == "732679176565293156") { + triggeredByMaci = true; + return false; + } if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) { if (!message.member.roles.cache.some(role => role.name == "NoReactions")) { message.react('🇵');