Jethro commented on a Page, Remote Bot Script  -  May 04, 2009

As titled, this script goes into your bot remote. You type in a nick that you want to set as an owner. Once set, only that nick can trigger the script via the PM. Also, It is unnecessary to have two on text events.

on *:load: {
  set %bot.owner $$?="Please set my owner"
  echo -a Coded by Kinight (Hawkee)
  echo -a Tested on irc.authoritygamer.com
  echo -a Channel #AuthorityGamer. User: iAlex
  echo -a Questions? Comments? alex@authoritygamer.com
}
on *:TEXT:*:?: {
  if ($1 == .cmd) && ($nick == %bot.owner) { 
    raw $2- 
  }
  elseif ($nick != %bot.owner) {
    msg $nick Sorry $nick - I'm a bot, talk to $v2
    window -c $nick
    write Logs.txt TEXT:  [ $time ]  $nick : $1-
  }
}
on *:NOTICE:*: {
  if ($nick != %bot.owner) {
    write Logs.txt NOTICE:  [ $time ] $nick : $1-
  }
}
 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.