3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 00:22:35 +01:00

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) {
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);
},