forked from GitHub/dbot
db save every ten minutes
This commit is contained in:
parent
065611bcff
commit
836e9e3911
1
run.js
1
run.js
@ -29,6 +29,7 @@ DBot.prototype.say = function(channel, data) {
|
|||||||
|
|
||||||
DBot.prototype.save = function() {
|
DBot.prototype.save = function() {
|
||||||
fs.writeFileSync('db.json', JSON.stringify(this.db, null, ' '));
|
fs.writeFileSync('db.json', JSON.stringify(this.db, null, ' '));
|
||||||
|
console.log('database saved');
|
||||||
};
|
};
|
||||||
|
|
||||||
DBot.prototype.reloadModules = function() {
|
DBot.prototype.reloadModules = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user