From d233f9e5aa30133a5bdfec9faafc8efede5b25ac Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:07:59 +0300 Subject: [PATCH] I sometimes really hate nodej --- chatBot/includes/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index e1ba9dd..0aa6253 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -24,8 +24,8 @@ class Client extends EventEmitter { if(this.swarm.connections.size > 0) { let peers = [...this.swarm.peers] for (let peer in peers) { - console.log(peer) - console.log([peer.topics]); + console.log(peers[peer]) + console.log([peers[peer].topics]); } } });