mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
someone told me to make it shorter :epiccat:
This commit is contained in:
parent
82c2db0337
commit
af4c3e1e68
@ -47,7 +47,7 @@ export class Database {
|
|||||||
const newJson = JSON.stringify(db._content);
|
const newJson = JSON.stringify(db._content);
|
||||||
if (oldJson !== newJson || force){
|
if (oldJson !== newJson || force){
|
||||||
writeFileSync(this._path, JSON.stringify(this._content, null, 2));
|
writeFileSync(this._path, JSON.stringify(this._content, null, 2));
|
||||||
if (this._saveNotifs) console.log(`[${moment().format('DD/MM/YY HH:mm:ss')}] ` + this._path + ' Database saved');
|
if (this._saveNotifs) console.log(`[${moment().format('DD/MM/YY HH:mm:ss')}] ` + this._path + ' DB saved');
|
||||||
}
|
}
|
||||||
return db;
|
return db;
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ export class Database {
|
|||||||
}
|
}
|
||||||
disableSaveNotifs(){
|
disableSaveNotifs(){
|
||||||
this._saveNotifs = false;
|
this._saveNotifs = false;
|
||||||
console.log(this._path + ' "Database saved" Notifications disabled');
|
console.log(this._path + ' "DB saved" Notifications disabled');
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user