forked from GitHub/dbot
karma
This commit is contained in:
parent
6adc93f043
commit
5cbb0362c0
@ -23,12 +23,14 @@ var karma = function(dbot) {
|
|||||||
this.commands = {
|
this.commands = {
|
||||||
'karma': function(event) {
|
'karma': function(event) {
|
||||||
var item = event.params[1] || event.user;
|
var item = event.params[1] || event.user;
|
||||||
this.internalAPI.getKarma(event.server, target, function(err, karma) {
|
this.internalAPI.getKarma(event.server, item, function(err, karma) {
|
||||||
karma = karma.karma;
|
if(karma) {
|
||||||
event.reply(dbot.t('karma', {
|
karma = karma.karma;
|
||||||
'item': item,
|
event.reply(dbot.t('karma', {
|
||||||
'karma': karma
|
'item': item,
|
||||||
}));
|
'karma': karma
|
||||||
|
}));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user