From 2ff9c73585eea09ab77e4cd38b5b8c05f7b338c3 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:07:21 +0300 Subject: [PATCH] It doesnt want to work :sob: --- chatBot/includes/Client.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chatBot/includes/Client.js b/chatBot/includes/Client.js index 248d0d5..0110f22 100644 --- a/chatBot/includes/Client.js +++ b/chatBot/includes/Client.js @@ -87,10 +87,8 @@ class Client extends EventEmitter { } sendMessage(message) { - console.log(message); - console.log(message.prototype); - console.log(Message.prototype); - console.log(Object.prototype.isPrototypeOf.call(Message.prototype, message.prototype)); + console.log(message instanceof Message); + console.log(message instanceof TextMessage); console.log('Bot name:', this.botName); const data = message.toJsonString();