From b1c8ec4afacbfb31ff33e5d6a75d795f017a078d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 25 Mar 2012 02:24:12 +0100 Subject: [PATCH] add strings to reload functionality --- modules/admin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/admin.js b/modules/admin.js index bed5c95..f7775ea 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -32,6 +32,7 @@ var adminCommands = function(dbot) { 'reload': function(data, params) { dbot.db = JSON.parse(fs.readFileSync('db.json', 'utf-8')); + dbot.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8')); dbot.reloadModules(); dbot.say(data.channel, dbot.strings[dbot.language].reload); },