3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00
This commit is contained in:
reality 2015-02-04 17:06:00 +00:00
parent 4446825458
commit 931d2de4f1

View File

@ -26,11 +26,14 @@ var karma = function(dbot) {
this.internalAPI.getKarma(item, function(err, karma) { this.internalAPI.getKarma(item, function(err, karma) {
if(karma) { if(karma) {
karma = karma.karma; karma = karma.karma;
event.reply(dbot.t('karma', { } else {
'item': item, karma = 0;
'karma': karma
}));
} }
event.reply(dbot.t('karma', {
'item': item,
'karma': karma
}));
}); });
}, },