Channel Spy

By BlackDragon on Mar 13, 2006

Spy Everything spoken on the spy chan and deliver everything on the chan that the bot is in ;)

on *:text:*:#: {
   if (!chanspy == $1) {
      %spy.mpe = $chan
      %spy.room = $2
      %spy.enabled = true
      join %spy.room
      msg $chan Chan Spy on %spy.room iS Now EnaBleD
}
   elseif (!unspy == $1) {
      msg %spy.mpe Chan Spy on %spy.room iS Now DisABleD
      part %spy.room
      unset %spy.*
     }
   else {
      if (%spy.enabled) && (%spy.room == $chan) {
      msg %spy.mpe >>> $v1 ( $nick ) $1-
      }
   }
}

Comments

Sign in to comment.
saico   -  Nov 04, 2007

on :text::#: {
if ($nick isop $chan) {
if (!chanspy == $1) && ($2) {
.set %spy.room $2
.set %spy.enabled yes
.set %spy.headchannel $chan
.join %spy.room
.raw -q PRIVMSG %spy.headchannel : Enabled the channel spy on %spy.room
}
elseif (!unspy == $1) && ($2) && (%spy.headchannel) {
.raw -q PRIVMSG %spy.headchannel : Disabled the channel spy on %spy.room
.part %spy.room
.unset %spy.*
}
else {
if (%spy.enabled) && (%spy.room == $chan) {
.raw -q PRIVMSG %spy.headchannel : ‹ $+ $v1 $+ › ›› $nick $+ : $1-

  }
}

}
}

BlackDragon, what do you think of this<-, I fixed it, kind of:p

 Respond  
BlackDragon   -  Mar 01, 2007

@Noutrious this remote is for a mirc bot ;) not for your script or whatever :)
enjoy ;)

 Respond  
BlackDragon   -  Mar 01, 2007

Sorry For Missing Too Much Time... I Was Away To Army... I Re-Updated The Remote.. It\'s Ok Now... Thanks To DarthReven ;)

 Respond  
Noutrious   -  Mar 14, 2006

Not very useful..

 Respond  
KuTsuM   -  Mar 13, 2006

DarthReven had it right, it\'s after the second if statement. Now the code really doesn\'t work :)

 Respond  
CaRe_Taker   -  Mar 13, 2006

dude i wasnt puttin down ure script
u asked KuTsuM Were the missing bracket was

 Respond  
DarthReven   -  Mar 13, 2006

on :text::#: {
if (!chanspy == $1) {
%spy.mpe = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg $chan Chan Spy on %spy.room iS Now EnaBleD
}
elseif (!unspy == $1) {
msg %spy.mpe Chan Spy on %spy.room iS Now DisABleD
part %spy.room
unset %spy.*
}
else {
if (%spy.enabled) && (%spy.room == $chan) {
msg %spy.mpe >>> $v1 ( $nick ) $1-
}
}
}

 Respond  
BlackDragon   -  Mar 13, 2006

{ updated, added the missing bracket ;) }

 Respond  
BlackDragon   -  Mar 13, 2006

lol whatever. it works even :)

 Respond  
CaRe_Taker   -  Mar 13, 2006

on :text::#: {
if (!chanspy == $1) {
%mpe.room = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg %mpe.room Chan Spy on %spy.room iS Now EnaBleD
}
^^^ missing a bracket here
lol
should be like this :)
on :text::#: {
if (!chanspy == $1) {
%mpe.room = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg %mpe.room Chan Spy on %spy.room iS Now EnaBleD
}
}

 Respond  
BlackDragon   -  Mar 13, 2006

<#test>
(23:59:18) <@BlackDragon> !chanspy #lol
(23:59:20) Chan Spy on #lol iS Now EnaBleD

<#lol>
(00:00:12) * AnGeLLuS (~BA@5FF5012E.923DE169.6481A543.IP) has joined #lol
(00:00:31) sfdgasdgasg
(00:00:31) arga

<#test>
(00:00:31) 3>>> #lol (00:00:31): sfdgasdgasg
(00:00:32) 3>>> #lol (00:00:31): arga
(00:00:33) 3>>> #lol (00:00:32): rga
(00:01:40) !unspy
(00:01:42) * AnGeLLuS (~BA@5FF5012E.923DE169.6481A543.IP) has left #lol

<#test>
(00:01:41) 3>>> #lol (00:01:40): !unspy
(00:01:42) Chan Spy on #lol iS Now DisABleD

 Respond  
BlackDragon   -  Mar 13, 2006

erm KuTsuM ?
mising bracket? where? :S
but it works fine for me :/

 Respond  
KuTsuM   -  Mar 13, 2006

Missing bracket :)

 Respond  
`Kazuma   -  Mar 13, 2006

Ummm.. doesn\'t work.

 Respond  
Stirk   -  Mar 13, 2006

Not too significant, but if you plan to use a lot of variables in the future, you should prefix them with something like spyscript. Example: %Spyscript.room.
So at the end of the script you can just do unset %spyscript.* ( The prefix can be anything, but im not sure if you already have something prefixed with spy ).
Just a thought ;)

 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.