Advertisement
severen1999

Landail !timeout !ban whisper script

Aug 27th, 2018
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.94 KB | None | 0 0
  1. ;on private message from anyone with text starting with !timeout
  2. ;if their username has access lvl 10 or higher then send timeoutcommand to channel #landail
  3.  
  4. ;------------------------------Usage-------------------------------------------;
  5. ;                                                                              ;
  6. ;  Instead of normal timeout command in chat (/timeout username length reason) ;
  7. ;  whisper thesevbot with -> !timeout username length reason                   ;
  8. ;                                                                              ;
  9. ;------------------------------------------------------------------------------;
  10.  
  11. on *:text:!timeout*:?: {
  12.   ;check if user has lvl 10 or higher access in userlist
  13.   if ($ulevel > 9) {
  14.     ;msg channel to timeout user provided with time and reason provided
  15.     msg #landail .timeout $2 $3 $4-
  16.     ;echo the person running command and what they typed for logs
  17.     echo -s $nick ran the timeout command against $2 for the reason $2-
  18.   }
  19. }
  20.  
  21. ;similar to timeout command. If thesevbot receives a whisper starting with !ban
  22. ;if the user has access level 10 or higher then run the ban command.
  23.  
  24. ;------------------------------Usage-------------------------------------------;
  25. ;                                                                              ;
  26. ;just like timeout instead of normal ban command in chat (/ban username reason);
  27. ;      whisper thesevbot with ->  !ban username reason                         ;
  28. ;                                                                              ;
  29. ;------------------------------------------------------------------------------;
  30.  
  31. on *:text:!ban*:?: {
  32.   ;check if user has lvl 10 or higher access in userlist
  33.   if ($ulevel > 9) {
  34.     ;message the specified channel with the ban command and text caught from chat
  35.     msg #landail .ban $2 $3-
  36.     ;echo in irc program logging the entire command ran
  37.     echo -s $nick banned $2 for reason 3-
  38.   }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement