mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
Unit module fix
This commit is contained in:
parent
c6fdd3bdbc
commit
408707157a
@ -13,11 +13,11 @@ var units = function(dbot) {
|
||||
'~convert': function(event) {
|
||||
var query = event.input[1];
|
||||
try {
|
||||
var result = unit.convert(query);
|
||||
event.reply(dbot.t('result', {
|
||||
'input': query,
|
||||
'output': result
|
||||
}));
|
||||
var result = unit.convert(query);
|
||||
}
|
||||
catch (e) {
|
||||
event.reply(dbot.t('error'));
|
||||
|
Loading…
Reference in New Issue
Block a user