Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //example
- // spamswitch('off', '#reninsane');
- //if (cmd[0] == 'killspam') {
- //if (that.bot.isMod(channel, user.username) || user.username == channel.substr(1) || adminCheck(user.username)) { // USER IS ANY USER OF POWER IN CHANNEL
- if (command[0].toLowerCase() === '!killit') {
- if ((user.special.indexOf('mod') >= 0) || (user.special.indexOf('broadcaster') >= 0)) {
- var spamSwitch = function (ison, channel) {
- if (ison == 'off') {
- for (var i = 0; i < spamcommands.length; i++) {
- client.say(channel, spamcommands[i] + ' off')
- }
- }
- else {
- for (var i = 0; i < spamcommands.length; i++) {
- client.say(channel, spamcommands[i] + ' on')
- }
- }
- };
- if (command[1] == 'off') {
- spamSwitch('off', channel);
- }
- else {
- spamSwitch('on', channel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement