Fixed rooms not being deleted from the json file #4

Merged
snxraven merged 10 commits from MiTask/LinkUp-P2P-Chat:main into main 2024-06-09 04:20:00 -04:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 72bf632cd4 - Show all commits

1
app.js
View File

@ -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");

View File

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