db save every ten minutes

This commit is contained in:
Luke Slater 2011-10-12 14:53:33 +01:00
parent 065611bcff
commit 836e9e3911

1
run.js
View File

@ -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() {