Cheiron commented on a Page, Channel Staff Alert  -  Mar 28, 2011

as i did on one of my own snippets for a bot... my version allows 2 ways to alert staff.. either in channel via an on text command.. or stealth via noticing the bot. you will notice my version has 2 channels there.. this is due to my bot sitting in a seperate Ops channel so if it gets missed in the main channel from the onotice, then it messages it into the ops channel for the record. its for mirc and runs on 6.35. its fitted with antiflood too

on *:TEXT:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}
on *:NOTICE:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}
 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.