add strings to reload functionality

This commit is contained in:
Luke Slater 2012-03-25 02:24:12 +01:00
parent 1e1917af9b
commit b1c8ec4afa

View File

@ -32,6 +32,7 @@ var adminCommands = function(dbot) {
'reload': function(data, params) { 'reload': function(data, params) {
dbot.db = JSON.parse(fs.readFileSync('db.json', 'utf-8')); dbot.db = JSON.parse(fs.readFileSync('db.json', 'utf-8'));
dbot.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8'));
dbot.reloadModules(); dbot.reloadModules();
dbot.say(data.channel, dbot.strings[dbot.language].reload); dbot.say(data.channel, dbot.strings[dbot.language].reload);
}, },