Add comments

master
Caleb Fontenot 2023-04-11 08:13:09 +07:00
parent 4d5ff053fb
commit 81f0b8f47f
1 changed files with 4 additions and 2 deletions

@ -142,8 +142,10 @@ function getMatchingPhrase(inputString, targetCharacter) {
}
return matchingPhrase;
}
global.checkMessage = function checkMessage(message, runFromGlobal) {
/*
Main bot logic. Check for abbreviations by splitting the message at any non-word characters, then if we find a match, create a new array, replace the abbreviation with the phrase, then call replyMessage() and reply to the original message with the corrected one.
*/
global.checkMessage = function checkMessage(message, runFromGlobal) {
if (!runFromGlobal) {
checkInsult(message);
if (message.content == "<@1091120267851485215>, what are your pronouns?") {