From 16563d4dc43cad6b40cda68ea77fe8c62d54eda3 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sat, 7 Sep 2024 19:53:42 -0500 Subject: [PATCH] fix bug causing a crash --- main.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") {