Simple Spy Relay Bot

By Selfish on Jan 15, 2008

This is a simple code based and edited from the snippets (codes whatever) on Yoinx's http://www.hawkee.com/phpBB2/viewtopic.php?t=4823 code here.
To start, simply input the channel you wish to spy on in "set %relay.chan1 #channelhere". Then put the channel you wish to view the other channel on "set %relay.chan2 #spychannelhere". Then type /setchan and the relaying will begin! (Sometimes you need to disconnect and reconnect for it to work)
I edited this because it seemed simple enough (for me) to use and I only wanted to use it on one server and to inconspicuously spy on a channel a friend was banned from.
Just to highlight it works on the ONE server you are on and relays to a channel on that specific server!

on *:LOAD:{ set %relay.chan1  $$?="Enter Channel you want to spy here:" | set %relay.chan1  $$?="Enter a  Channel you want to spy from here:" | echo -a load succesfully. }
alias setchans {
  set %relay.chan1 #channelyouwanttospyonhere
  set %relay.chan2 #channelyouwanttospyfromhere
}
on *:text:*:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 $timestamp  $($+(<,$nick,>)) $1-
  }
}
on *:action:*:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 $timestamp  $nick $1-
  }
}
on *:join:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 Joins: $nick $address($nick,5)
  }
}
on *:part:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 Parts: $nick $address($nick,5)
  }
}

on @*:mode:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 mode %relay.chan2 $1-
  }
}
on @*:topic:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 topic %relay.chan2 $1-
  }
}
menu channel {
  Simple Spy Bot:
  .on://set %spy on
  .off://set %spy off
}

Comments

Sign in to comment.
ssimar   -  Apr 08, 2010

The Script is not working

 Respond  
SuPeRFlY   -  Oct 03, 2008

No problem. I still like it. Great job on it. I will just use it with my other script that's not on a bnc :). Thanks again and keep up the great work!

 Respond  
Cheiron   -  Oct 03, 2008

cant help you there sorry.. our server has bouncers disabled. and only IRCops / HelpOps can have vhosts and they are set via operblock.

 Respond  
SuPeRFlY   -  Oct 03, 2008

Well like my last post said "Works like a charm". I did notice it wont work if you're on a bnc though for some reason. Any way around that?

 Respond  
Cheiron   -  Oct 03, 2008

it is a mistake i have seen many a person make heh...

"my spy bot dont work... i cant see what going on in the channel" ... ummm... is the bot in the room as well as in your room you are relaying it too? .... "does it have to be then...." ....headbuts nearest wall repeatably

 Respond  
SuPeRFlY   -  Oct 03, 2008

Works like a charm. Excelent work Cheiron. 10/10

 Respond  
Cheiron   -  Feb 03, 2008

okay peeps.. looking at this and at jubs issue of not seeing anything, i would surmise that he has not done the simple thing. spy scripts require you to be in the room you are spying in even if it is with another mirc connection on your pc. but you must be in the room you are spying on.. what the spy does is relay info from one channel to a channel of your choosing (ie an empty room you have made and set private or secret for example) and it will just copy whatever is put in one room to another.. that is the principles behind a spyscript.

 Respond  
Selfish   -  Feb 03, 2008

Have you remembered to /setchans after you\'ve changed the channels and right click selected simple spy bot on? Double check that.

 Respond  
guest598594   -  Jan 21, 2008

#zbattles2

 Respond  
jub369   -  Jan 20, 2008

nothing works i wanjt to spy on a chan that me +b on but not even a word comes up for any chan lol

 Respond  
jub369   -  Jan 20, 2008

ok how i do this

i did this

much and nothing comes up

on :LOAD:{ set %relay.chan1 $$?=\"Enter Channel you want to spy here:\" | set %relay.chan1 $$?=\"Enter a Channel you want to spy from here:\" | echo -a load succesfully. }
alias setchans {
set %relay.chan1 ##zbattles2
set %relay.chan2 #draco
}
on
:text::%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 msg %relay.chan2 $timestamp $($+(<,$nick,>)) $1-
}
}
on
:action::%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 msg %relay.chan2 $timestamp $nick $1-
}
}
on
:join:%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 msg %relay.chan2 Joins: $nick $address($nick,5)
}
}
on *:part:%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 msg %relay.chan2 Parts: $nick $address($nick,5)
}
}

on @:mode:%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 mode %relay.chan2 $1-
}
}
on @
:topic:%relay.chan1: {
if ( $chan(#).cid == 1 ) && (%Spy == on) {
scid 1 topic %relay.chan2 $1-
}
}
menu channel {
Simple Spy Bot:
.on://set %spy on
.off://set %spy off
}

 Respond  
CharltonJ   -  Jan 16, 2008

yeah lol :P

 Respond  
Selfish   -  Jan 16, 2008

And /setchan after you\'ve changed the channels!

 Respond  
Selfish   -  Jan 16, 2008

Thanks ^^;
Yeah so now right click for on/off!

 Respond  
CharltonJ   -  Jan 16, 2008
on *:LOAD:{ set %relay.chan1  $$?=\"Enter Channel you want to spy here:\" | set %relay.chan1  $$?=\"Enter a  Channel you want to spy from here:\" | echo -a load succesfully. }
alias setchans {
  set %relay.chan1 #channelyouwanttospyonhere
  set %relay.chan2 #channelyouwanttospyfromhere
}
on *:text:*:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 $timestamp  $($+(<,$nick,>)) $1-
  }
}
on *:action:*:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 $timestamp  $nick $1-
  }
}
on *:join:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 Joins: $nick $address($nick,5)
  }
}
on *:part:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 msg %relay.chan2 Parts: $nick $address($nick,5)
  }
}

on @*:mode:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 mode %relay.chan2 $1-
  }
}
on @*:topic:%relay.chan1: {
  if ( $chan(#).cid == 1 ) && (%Spy == on) {
    scid 1 topic %relay.chan2 $1-
  }
}
menu channel { 
  Simple Spy Bot:
  .on://set %spy on
  .off://set %spy off
}
 Respond  
Selfish   -  Jan 16, 2008

Oh, and you can\'t turn it off yet =P.

 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.