diff --git a/main.cjs b/main.cjs index 75a8cb1..319ada7 100644 --- a/main.cjs +++ b/main.cjs @@ -135,13 +135,19 @@ client.on('messageCreate', message => { madlibNextMessage(message.content, client); } //checkMessage(message, false); - colonThree(message); - tylerStop(message); + if (message != undefined) { + colonThree(message); + tylerStop(message); + } + }); client.on('messageUpdate', (undefined, newMessage) => { //checkMessage(newMessage, false); + if (message != undefined) { + colonThree(message); tylerStop(message); + } }); function getMatchingPhrase(inputString, targetCharacter) {