Advertisement
p1kashwak

fuckit

May 24th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. //example
  2. // spamswitch('off', '#reninsane');
  3. //if (cmd[0] == 'killspam') {
  4. //if (that.bot.isMod(channel, user.username) || user.username == channel.substr(1) || adminCheck(user.username)) { // USER IS ANY USER OF POWER IN CHANNEL
  5. if (command[0].toLowerCase() === '!killit') {
  6. if ((user.special.indexOf('mod') >= 0) || (user.special.indexOf('broadcaster') >= 0)) {
  7. var spamSwitch = function (ison, channel) {
  8. if (ison == 'off') {
  9. for (var i = 0; i < spamcommands.length; i++) {
  10. client.say(channel, spamcommands[i] + ' off')
  11. }
  12. }
  13. else {
  14. for (var i = 0; i < spamcommands.length; i++) {
  15. client.say(channel, spamcommands[i] + ' on')
  16. }
  17.  
  18. }
  19. };
  20. if (command[1] == 'off') {
  21. spamSwitch('off', channel);
  22. }
  23. else {
  24. spamSwitch('on', channel);
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement