Fixed rooms not being deleted from the json file #4
1
app.js
1
app.js
@ -438,6 +438,7 @@ function toggleSetupView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function writeConfigToFile(filePath) {
|
function writeConfigToFile(filePath) {
|
||||||
|
console.debug(config)
|
||||||
fs.writeFile(filePath, JSON.stringify(config), (err) => {
|
fs.writeFile(filePath, JSON.stringify(config), (err) => {
|
||||||
if (err) return console.error(err);
|
if (err) return console.error(err);
|
||||||
console.log("File has been created");
|
console.log("File has been created");
|
||||||
|
@ -42,7 +42,7 @@ loadCommands().then(commands => {
|
|||||||
if (message.type == "icon") return;
|
if (message.type == "icon") return;
|
||||||
console.log(message);
|
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
|
// Check if the message starts with a command prefix
|
||||||
if (message.message.startsWith('!')) {
|
if (message.message.startsWith('!')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user