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('!')) {