Simple PM fowarding

By napa182 on Jul 01, 2007

"UPDATED"
Ok What this does is if someones pm's your bot, Ur bot pm's you and tell's you what they said. Put in a new remote of Ur bot and set Ur self as bot owner by typing /botking Urnick On Ur bot's side.. Then Put the last part of this snippet on Ur side and set the bot's name by typing /kingbot Botsname.. Then right click in a channel on Ur side to turn it on/off.

alias botking { set %botking $1 | echo -a Bot Owner Is Now $1  }
on *:text:foward *:?: {
  if ($nick = %botking) {
    $+(.,$iif($2 = on,en,dis),able) #forward 
    .notice %botking PM Forwarding Is Now $group(#forward)
    .close -m $nick 
  }
}
on *:load: { 
  echo 12 -a You Have Just Loaded Napa182's PM Forwarding 
  echo 12 -a An Irc.EzzyChat.com Production 
}
#forward on
on *:open:?:*: {
  if (!$istok(nickserv.memoserv.chanserv.operserv.hostserv.helpserv.%botking,$nick,46)) {
    inc -u120 $+(%,for,$nick)
    if ($($+(%,for,$nick),2) = 1) { msg $nick Hi $nick I Am A BOT, But Leave Me A Message And I'l Forward It To My Owner } 
  }
}
on *:text:*:?: {
  if (!$istok(nickserv.memoserv.chanserv.operserv.hostserv.helpserv.%botking,$nick,46)) {
    if ($($+(%,for,$nick),2) <= 3) { msg %botking $nick had Private Messaged me: $1- | .close -m $nick }
    if ($($+(%,for,$nick),2) >= 3) { .close -m $nick }
  }
}
#forward end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;ADD ON THE BOT OWNER'S SIDE;;;;;;;;;;;;;;;;;;;;;
;;;;;;AND SET UR BOT'S NAME BY TYPING /KINGBOT BOTSNAME;;;;;;;;;

alias kingbot { set %kingbot $1 | echo -a Bot Name Is Now Set As %kingbot }
menu menubar,channel { 
  PM foward
  .ON:.msg %kingbot foward on 
  .OFF:.msg %kingbot foward off 
}

Comments

Sign in to comment.
SnoooP   -  Mar 02, 2010

Napa I just noticed this snippet today, good work!

 Respond  
RusselB   -  Nov 29, 2008

Referencing post from a careful warchild:
If everyone tried to only have original ideas for scripts on this, or any other scripting forum, I'd be surprised if there were more than a hundred or so scripts.

Imo, part of the reason for having a Snippets section, is so that one can see how one person did a script, then try it yourself in a different manner.

 Respond  
a careful warchild   -  Nov 29, 2008

looks like you stole my idea ;) obviously you made it better than mine but you stole mah idea bish ;]

 Respond  
fire_wizard1   -  Nov 29, 2008

oh ok lol i got it now

 Respond  
fire_wizard1   -  Nov 29, 2008

i tried the script, and it tells me forward no such nick/channel, when i go to turn it on

 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.