From 72bf632cd4efb6c25d2c129198927c87d2af38be Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:07:52 +0300 Subject: [PATCH] I dont know what to say here because i just need up-to-date repo on my laptop --- app.js | 1 + chatBot/bot.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 950b076..5306609 100644 --- a/app.js +++ b/app.js @@ -438,6 +438,7 @@ function toggleSetupView() { } function writeConfigToFile(filePath) { + console.debug(config) fs.writeFile(filePath, JSON.stringify(config), (err) => { if (err) return console.error(err); console.log("File has been created"); diff --git a/chatBot/bot.js b/chatBot/bot.js index c7edbf1..6417cf4 100644 --- a/chatBot/bot.js +++ b/chatBot/bot.js @@ -42,7 +42,7 @@ loadCommands().then(commands => { if (message.type == "icon") return; console.log(message); - console.log(`Message received from ${message.name} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`); + console.log(`Message received from ${message.name}@${peer} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`); // Check if the message starts with a command prefix if (message.message.startsWith('!')) {