make sure messages are defined
This commit is contained in:
parent
a24a19400e
commit
1167324033
6
main.cjs
6
main.cjs
@ -135,13 +135,19 @@ client.on('messageCreate', message => {
|
||||
madlibNextMessage(message.content, client);
|
||||
}
|
||||
//checkMessage(message, false);
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user