forked from GitHub/dbot
Fixed output on module load, added a new translation for search results.
This commit is contained in:
parent
c3832c209f
commit
55dec12324
4
run.js
4
run.js
@ -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));
|
||||
|
@ -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]"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user