|
|
|
@ -131,6 +131,7 @@ function checkMessage(message) {
|
|
|
|
|
//console.log("Corrected Message: " + correctedMessage);
|
|
|
|
|
|
|
|
|
|
if (abbreviationKey.target_phrases[matchMessageArray[i]] !== undefined) {
|
|
|
|
|
checkIfGirlfriend(message);
|
|
|
|
|
if (checkIfExempt(message)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -170,6 +171,12 @@ function checkMessage(message) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function checkIfGirlfriend(message) {
|
|
|
|
|
if (message.author.id == "698360641731166238") {
|
|
|
|
|
message.react('☺️');
|
|
|
|
|
message.react('❤️');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function checkIfExempt(message) {
|
|
|
|
|
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
|
|
|
|
|
if (!message.author.bot) {
|
|
|
|
|