Compare commits

..

No commits in common. "72bf632cd4efb6c25d2c129198927c87d2af38be" and "3df73b97c56d9a01cbc7bfaf3ef6f9c9796883d4" have entirely different histories.

2 changed files with 1 additions and 3 deletions

2
app.js
View File

@ -300,7 +300,6 @@ function sendMessage(e) {
name: config.userName,
message,
avatar: config.userAvatar,
topic: b4a.toString(currentRoom.topic, 'hex'),
timestamp: Date.now(),
});
@ -438,7 +437,6 @@ 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}@${peer} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`);
console.log(`Message received from ${message.name} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`);
// Check if the message starts with a command prefix
if (message.message.startsWith('!')) {