diff --git a/main.cjs b/main.cjs index 4075c60..1c303b7 100644 --- a/main.cjs +++ b/main.cjs @@ -154,6 +154,7 @@ global.checkMessage = function checkMessage(message, runFromGlobal) { if (message.author.id == "1091120267851485215") { return; } + h(message); console.log(`${message.author.tag} in #${message.channel.name} sent: ${message.content}`); } //console.log(message.author); @@ -213,6 +214,12 @@ global.checkMessage = function checkMessage(message, runFromGlobal) { replyMessage(message, correctedMessage, abbrsUsed); } +function h(message) { + if (!message.author.bot && message.author.id == "205475706296205312" && message.content.includes('h')) { + message.react('🇭'); + } +} + } function checkIfGirlfriend(message) { if (message.author.id == "698360641731166238") { @@ -221,15 +228,15 @@ function checkIfGirlfriend(message) { } } function checkIfExempt(message) { - console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")); - if (message.content.includes("http", "https")) { - message.react('🌐'); - message.react('🔗'); - return true; - } else if (message.content.includes("```")) { - return true; - } if (!message.author.bot) { + console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")); + if (message.content.includes("http", "https")) { + message.react('🌐'); + message.react('🔗'); + return true; + } else if (message.content.includes("```")) { + return true; + } if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) { if (!message.member.roles.cache.some(role => role.name == "NoReactions")) { message.react('🇵');