mIRC Home    About    Download    Register    News    Help

Print Thread
#106118 24/12/04 02:34 PM
Joined: Dec 2004
Posts: 1
U
Unis Offline OP
Mostly harmless
OP Offline
Mostly harmless
U
Joined: Dec 2004
Posts: 1
I use this Echo script, to link my bot with another channel on another network.


==================================================
on *:text:*:#jokes:{
if $network == Quakenet && $nick == JokeBot || $nick == JokeOr || $nick == MagicMan {
set -u %relayto $1-
scid -at1 checknets
}
}
alias -l checknets {
if $network == UnderNet && $me ison #Jokes {
msg #jokes %relayto
}
}
==================================================

This works fine everytime there is a new joke announced in that channel, the echo-bot echo's it in #jokes on the other network

now the bots also have a request function, f/e
!joke blonds, then the bot tells a joke about blonds, but how do I echo request from the one net to the other and then echo's the answer back

f/e, somebody says: !joke politics
the the echo bot only echo's !joke politics
the bot JokeBot answers with [Request] the joke
then the echo-bot echo's [Request] the joke, to the channel on the other net?

#106119 26/12/04 12:11 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this
Code:
on *:text:*:#jokes:{
  if $network == Quakenet && $istok(JokeBot JokeOr MagicMan,$nick,32) {
    scid $$checknets(Undernet)
    if $me ison #jokes { msg $v2 $1- }
  }
  elseif $network == Undernet && $1 == !joke {
    scid $$checknets(Quakenet)
    if $me ison #jokes { msg $v2 $1- }
  }
}
alias checknets var %a | scid -at1 if ($network == $1) $(var %a = $cid,0) | return %a


Link Copied to Clipboard