mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 12:12:35 +01:00
karma
This commit is contained in:
parent
4446825458
commit
931d2de4f1
@ -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
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user