3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +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) {
if(karma) {
karma = karma.karma;
event.reply(dbot.t('karma', {
'item': item,
'karma': karma
}));
} else {
karma = 0;
}
event.reply(dbot.t('karma', {
'item': item,
'karma': karma
}));
});
},