mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
Actually save the database
Moved this.save() call to end of reloadModules so new keys are actually saved.
This commit is contained in:
parent
198fe9992d
commit
c9a7254921
2
run.js
2
run.js
@ -122,7 +122,6 @@ DBot.prototype.reloadModules = function() {
|
||||
this.commandMap = {}; // Map of which commands belong to which modules
|
||||
this.usage = {};
|
||||
this.timers.clearTimers();
|
||||
this.save();
|
||||
|
||||
try {
|
||||
this.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8'));
|
||||
@ -226,6 +225,7 @@ DBot.prototype.reloadModules = function() {
|
||||
console.log('MODULE ERROR: ' + name + ' ' + err);
|
||||
}
|
||||
}.bind(this));
|
||||
this.save();
|
||||
};
|
||||
|
||||
DBot.prototype.cleanNick = function(key) {
|
||||
|
Loading…
Reference in New Issue
Block a user