2011-08-22 18:54:12 +02:00
|
|
|
var userCommands = function(dbot) {
|
|
|
|
var dbot = dbot;
|
|
|
|
|
|
|
|
var commands = {
|
|
|
|
'~kc': function(data, params) {
|
|
|
|
dbot.say('aisbot', '.karma ' + data.message.split(' ')[1]);
|
|
|
|
dbot.waitingForKarma = data.channel;
|
|
|
|
},
|
|
|
|
|
|
|
|
'~kickcount': function(data, params) {
|
2011-08-24 02:57:52 +02:00
|
|
|
if(!dbot.db.kicks.hasOwnProperty(params[1])) {
|
2011-08-22 18:54:12 +02:00
|
|
|
dbot.say(data.channel, params[1] + ' has either never been kicked or does not exist.');
|
|
|
|
} else {
|
|
|
|
dbot.say(data.channel, params[1] + ' has been kicked ' + dbot.db.kicks[params[1]] + ' times.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
2011-08-28 16:00:22 +02:00
|
|
|
'onLoad': function() {
|
|
|
|
return commands;
|
|
|
|
}
|
2011-08-22 19:56:36 +02:00
|
|
|
};
|
2011-08-22 18:54:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.fetch = function(dbot) {
|
|
|
|
return userCommands(dbot);
|
|
|
|
};
|