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:
parent
1e1917af9b
commit
b1c8ec4afa
@ -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);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user