Ignore for Bot

By sk68 on Jul 16, 2009

Ignore Script for bot

Commands: !ignore [time]
!unignore <nick/"all">
!shutdown
/notice listen

!shutdown causes bot to ignore everyone and all commands via query or channel, notice with listen to undo

set yourself and anyone you want to be able to use this script as Owner in Users

/auser -a Owner <nick/host>

/*
<:>:<:>:<:>:<:>:<:>:<:>:<:>
SK68'S IGNORE SCRIPT
<:>:<:>:<:>:<:>:<:>:<:>:<:>
*/
; Syntax: !ignore <nick/host> <time(optional)>
; !unignore <nick/host>
; !shutdown
; /notice <botname> listen

on Owner:TEXT:!ignore*:#: { if (!$3) {
    /ignore $iif($chr(46) !isin $2, $address($2,2),$2)
    privmsg $chan $2 has been added to ignore list
  }
  elseif ($3 isnum) { 
    /ignore -u $+ $3 $iif($chr(46) !isin $2, $address($2,2),$2)
    privmsg $chan $2 has been ignored for $3 seconds
    timerignore 1 $3 privmsg $chan $2 removed from ignore list
  }
  else {
    privmsg $chan Incorrect Syntax!
  }
}
on Owner:TEXT:!unignore*:#: { if (!$2) {
    privmsg $chan Incorrect Syntax!
  }
  elseif ($2 == all) { 
    /ignore -r
    privmsg $chan Ignore list cleared
  }
  else { 
    /ignore -r $iif($chr(46) !isin $2, $address($2,2),$2)
    privmsg $chan $2 has been removed from ignore list
  }
}    
on Owner:TEXT:!shutdown:#: { /ignore -cp *
  /ame is ignoring commands
}
on Owner:NOTICE:listen:*: { /ignore -r *
  /ame is no longer ignoring commands
}

Comments

Sign in to comment.
Somsubhra1   -  Jan 20, 2016

Well, the script works awesome. Only one suggestion: Add a list command to the script so that we can see the people whom the bot ignores.
Thanks.

 Respond  
Dark|   -  Nov 27, 2010

Mhm, iv fixed the probelm since then - mIRC adddress book does great xD

 Respond  
sk68   -  Nov 27, 2010

it is possible there were some changes to the ignore command since this was posted, Im not really sure

 Respond  
Dark|   -  Nov 27, 2010

I Did that {both} and the bot didnt unignore the channel

 Respond  
sk68   -  Nov 27, 2010

well, its not actually !listen, its listen

 Respond  
Dark|   -  Nov 25, 2010

sk68, i cannot get !listen to work it seems, it wont unignore the channel even tho iv done the notice and it does /ame blahblah Can you help?

 Respond  
ssimar   -  Apr 26, 2010

it not works

 Respond  
sk68   -  Feb 07, 2010

did you add yourself as Owner?

 Respond  
Pangaea   -  Jan 21, 2010

This dosent seem to work

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.