3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

Fixed output on module load, added a new translation for search results.

This commit is contained in:
Luke Slater 2012-05-23 18:02:02 +01:00
parent c3832c209f
commit 55dec12324
2 changed files with 5 additions and 2 deletions

4
run.js
View File

@ -53,7 +53,7 @@ var DBot = function(timers) {
// Populate bot properties with config data
this.name = this.config.name || 'dbox';
this.admin = this.config.admin || [ 'reality' ];
this.moduleNames = this.config.modules || [ 'command', 'js' ];
this.moduleNames = this.config.modules || [ 'command', 'js', 'quotes' ];
this.language = this.config.language || 'english';
// It's the user's responsibility to fill this data structure up properly in
@ -167,7 +167,7 @@ DBot.prototype.reloadModules = function() {
this.modules.push(module);
} catch(err) {
console.log(this.strings[this.language].module_load_error.format({'moduleName': name}));
console.log(this.t('module_load_error', {'moduleName': name}));
console.log(err);
}
}.bind(this));

View File

@ -186,5 +186,8 @@
"kicked_dbot": {
"english": "Thou shalt not kick {botname}",
"spanish": "No expulsás {botname}"
},
"search_results": {
"english": "{category} ({needle}): '{quote}' [{matches} results]"
}
}