From d5650a9d7bb6b1f46bd60ec8ef2dbfaf6150ea21 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:09:30 +0300 Subject: [PATCH] I think i did it yay --- chatBot/includes/Client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chatBot/includes/Client.js b/chatBot/includes/Client.js index 0110f22..eec549e 100644 --- a/chatBot/includes/Client.js +++ b/chatBot/includes/Client.js @@ -87,8 +87,7 @@ class Client extends EventEmitter { } sendMessage(message) { - console.log(message instanceof Message); - console.log(message instanceof TextMessage); + if(!(message instanceof Message)) return console.log(`message does not extend Message class (TextMessage, FileMessage, AudioMessage).`, message); console.log('Bot name:', this.botName); const data = message.toJsonString();