From 27b35283042b8030f278b50cf796c12063b153fb Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:13:52 +0300 Subject: [PATCH] It can have multiple topics :( time to figure a way to do it then ig --- chatBot/includes/client.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index 2c7a0b9..aa2532a 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -25,9 +25,7 @@ class Client extends EventEmitter { this.swarm.peers.forEach((peerInfo, peer) => { console.log(`Peer ${[peer]} is in topic(s) [${[peerInfo.topics].filter(topic => topic).map(topic => { - console.log(topic) - return "test" - // b4a.toString(topic, 'hex') + console.log(topic.map(top => b4a.toString(top, 'hex'))) }).join(", ")}]`); }); });