napa182 commented on a Page, Privmsg script for your bot  -  Jan 21, 2009

this is open to flood attacks on ur bot and ur self.

you could add a bit of flood protection to it and also away to turn it on/off and set the bot owner

on *:open:?:*: {
  if (!$($+(%,msgflood,.,$nick),2) && %privmessage) {
    set -u30 $+(%,msgflood,.,$nick) on
    .msg $nick if you did not notice i am a bot, and therefor i will not talk back to you. Your msg will be sent to my owner %POwner
    .close -m $nick
    .msg %POwner $nick has this to say||>> $timestamp $+(<,$nick,>) $1-
    .close -m %POwner
  }
}
menu * {
  .privmsg message
  ..Turn $iif(!%privmessage,ON,OFF):{ $iif(!%privmessage,set %privmessage on,unset %privmessage) | echo -a Privet Message Is Now $iif(!%privmessage,OFF,ON) }
  ..Set Owner:{ set %POwner $$?="Set Bot Owner" | echo -a Bot Owner Is $! }
}
on *:load: { echo -a You has just loaded darkarrows bot msg script }
 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.