From bd885bb5916da9de5d9cd1f10b853241ab9561c3 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Fri, 14 Jun 2024 04:46:19 -0400 Subject: [PATCH] Fix peerName in Message received --- chatBot/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatBot/bot.js b/chatBot/bot.js index 3ef3d0e..d13f001 100644 --- a/chatBot/bot.js +++ b/chatBot/bot.js @@ -41,7 +41,7 @@ loadCommands().then(commands => { bot.on('onMessage', (peer, message) => { console.log(message); - console.log(`Message received from ${message.name}@${message.topic} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`); + console.log(`Message received from ${message.peerName}@${message.topic} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`); // Check if the message starts with a command prefix if (message.message.startsWith('!')) {