diff --git a/main.cjs b/main.cjs index 7cb26ab..f3e9b08 100644 --- a/main.cjs +++ b/main.cjs @@ -134,7 +134,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) { client.on('messageCreate', message => { console.log(typeof(undefined) === undefined); console.log(typeof(message)); - if (typeof(message) === undefined) { + if (typeof(message) == "undefined") { return; } if (message.author.id == "1091120267851485215") { @@ -153,9 +153,7 @@ client.on('messageCreate', message => { client.on('messageUpdate', (undefined, message) => { //checkMessage(newMessage, false); - console.log(typeof(undefined) === undefined); - console.log(typeof(message)); - if (typeof(message) === undefined) { + if (typeof(message) == "undefined") { return; } if (message.author.id == "1091120267851485215") {