From 836e9e3911e1408b973513e4e32131e5f41e64b0 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 12 Oct 2011 14:53:33 +0100 Subject: [PATCH] db save every ten minutes --- run.js | 1 + 1 file changed, 1 insertion(+) diff --git a/run.js b/run.js index 4acf2a0..bcb7e69 100644 --- a/run.js +++ b/run.js @@ -29,6 +29,7 @@ DBot.prototype.say = function(channel, data) { DBot.prototype.save = function() { fs.writeFileSync('db.json', JSON.stringify(this.db, null, ' ')); + console.log('database saved'); }; DBot.prototype.reloadModules = function() {