diff --git a/main.cjs b/main.cjs index 6d3c8ff..a1f519f 100644 --- a/main.cjs +++ b/main.cjs @@ -132,7 +132,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) { } client.on('messageCreate', message => { - if (typeof message === undefined) { + if (typeof(message) === undefined) { return; } if (message.author.id == "1091120267851485215") { @@ -151,7 +151,7 @@ client.on('messageCreate', message => { client.on('messageUpdate', (undefined, newMessage) => { //checkMessage(newMessage, false); - if (typeof message === undefined) { + if (typeof(message) === undefined) { return; } if (message.author.id == "1091120267851485215") {