mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
kickcount
This commit is contained in:
parent
04dc901974
commit
f48da5bcb4
@ -9,10 +9,14 @@ var userCommands = function(dbot) {
|
|||||||
|
|
||||||
'~kickcount': function(data, params) {
|
'~kickcount': function(data, params) {
|
||||||
if(!dbot.db.kicks.hasOwnProperty(params[1])) {
|
if(!dbot.db.kicks.hasOwnProperty(params[1])) {
|
||||||
dbot.say(data.channel, params[1] + ' has either never been kicked or does not exist.');
|
var kicks = '0';
|
||||||
} else {
|
|
||||||
dbot.say(data.channel, params[1] + ' has been kicked ' + dbot.db.kicks[params[1]] + ' times and has kicked people ' + dbot.db.kickers[params[1]] + ' times.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!dbot.db.kickers.hasOwnProperty(params[1])) {
|
||||||
|
var kicked = '0';
|
||||||
|
}
|
||||||
|
|
||||||
|
dbot.say(data.channel, params[1] + ' has been kicked ' + kicks + ' times and has kicked people ' + kicked + ' times.');
|
||||||
},
|
},
|
||||||
|
|
||||||
'~kickstats': function(data, params) {
|
'~kickstats': function(data, params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user