forked from snxraven/LinkUp-P2P-Chat
Compare commits
No commits in common. "72bf632cd4efb6c25d2c129198927c87d2af38be" and "3df73b97c56d9a01cbc7bfaf3ef6f9c9796883d4" have entirely different histories.
72bf632cd4
...
3df73b97c5
2
app.js
2
app.js
@ -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");
|
||||
|
@ -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('!')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user