3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

fix the things

This commit is contained in:
reality 2013-07-15 18:51:32 +00:00
parent 2203f50dea
commit d9d7d9bff7

3
run.js
View File

@ -281,11 +281,8 @@ DBot.prototype.reloadModules = function() {
try {
propertyData = JSON.parse(fs.readFileSync(moduleDir + property + '.json', 'utf-8'));
} catch(err) {
this.status[name] = 'Error loading ' + property +
': ' + err + ' - ' + err.stack.split('\n')[1].trim();
console.log('Data error (' + module.name + ') in ' +
property + ': ' + err);
};
_.extend(this[property], propertyData);
if(property == 'strings') {