forked from snxraven/LinkUp-P2P-Chat
I dont know what to say here because i just need up-to-date repo on my laptop
This commit is contained in:
parent
966873774c
commit
72bf632cd4
1
app.js
1
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");
|
||||
|
@ -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('!')) {
|
||||
|
Loading…
Reference in New Issue
Block a user