forked from GitHub/dbot
Unit module fix
This commit is contained in:
parent
c6fdd3bdbc
commit
408707157a
@ -13,11 +13,11 @@ var units = function(dbot) {
|
|||||||
'~convert': function(event) {
|
'~convert': function(event) {
|
||||||
var query = event.input[1];
|
var query = event.input[1];
|
||||||
try {
|
try {
|
||||||
|
var result = unit.convert(query);
|
||||||
event.reply(dbot.t('result', {
|
event.reply(dbot.t('result', {
|
||||||
'input': query,
|
'input': query,
|
||||||
'output': result
|
'output': result
|
||||||
}));
|
}));
|
||||||
var result = unit.convert(query);
|
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
event.reply(dbot.t('error'));
|
event.reply(dbot.t('error'));
|
||||||
|
Loading…
Reference in New Issue
Block a user