From ae03e620a00ae68e339d764931ea68dde37710e8 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sat, 7 Sep 2024 20:01:12 -0500 Subject: [PATCH] fuck you javascript --- main.cjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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") {