mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
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
|
// Populate bot properties with config data
|
||||||
this.name = this.config.name || 'dbox';
|
this.name = this.config.name || 'dbox';
|
||||||
this.admin = this.config.admin || [ 'reality' ];
|
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';
|
this.language = this.config.language || 'english';
|
||||||
|
|
||||||
// It's the user's responsibility to fill this data structure up properly in
|
// 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);
|
this.modules.push(module);
|
||||||
} catch(err) {
|
} 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);
|
console.log(err);
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
@ -186,5 +186,8 @@
|
|||||||
"kicked_dbot": {
|
"kicked_dbot": {
|
||||||
"english": "Thou shalt not kick {botname}",
|
"english": "Thou shalt not kick {botname}",
|
||||||
"spanish": "No expulsás {botname}"
|
"spanish": "No expulsás {botname}"
|
||||||
|
},
|
||||||
|
"search_results": {
|
||||||
|
"english": "{category} ({needle}): '{quote}' [{matches} results]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user