Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;on private message from anyone with text starting with !timeout
- ;if their username has access lvl 10 or higher then send timeoutcommand to channel #landail
- ;------------------------------Usage-------------------------------------------;
- ; ;
- ; Instead of normal timeout command in chat (/timeout username length reason) ;
- ; whisper thesevbot with -> !timeout username length reason ;
- ; ;
- ;------------------------------------------------------------------------------;
- on *:text:!timeout*:?: {
- ;check if user has lvl 10 or higher access in userlist
- if ($ulevel > 9) {
- ;msg channel to timeout user provided with time and reason provided
- msg #landail .timeout $2 $3 $4-
- ;echo the person running command and what they typed for logs
- echo -s $nick ran the timeout command against $2 for the reason $2-
- }
- }
- ;similar to timeout command. If thesevbot receives a whisper starting with !ban
- ;if the user has access level 10 or higher then run the ban command.
- ;------------------------------Usage-------------------------------------------;
- ; ;
- ;just like timeout instead of normal ban command in chat (/ban username reason);
- ; whisper thesevbot with -> !ban username reason ;
- ; ;
- ;------------------------------------------------------------------------------;
- on *:text:!ban*:?: {
- ;check if user has lvl 10 or higher access in userlist
- if ($ulevel > 9) {
- ;message the specified channel with the ban command and text caught from chat
- msg #landail .ban $2 $3-
- ;echo in irc program logging the entire command ran
- echo -s $nick banned $2 for reason 3-
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement