mIRC Home    About    Download    Register    News    Help

Print Thread
#135285 10/11/05 12:56 AM
Joined: Oct 2005
Posts: 51
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 51
ok all we got radio in our irc chan that
it say whats playing at that time im tring 2 make bot that will say
what ever that bot say on2 other server
im not sure how this would be done sence its 2 diff servers not linked
but this bot would be on both server and mayb even 2 diff room names
i only got this so far
Code:
[script]
on *:load:{
  /echo 4Auto~11Respond System 
  /echo 4[Turn On = /respondON] [Turn Off = /respondOFF]
}
menu * {
  AutoRespond
  .On:/enable #respond 
  .Off:/disable #respond
alias respondON {
  /echo 4Auto~11Respond --ON--
  /enable #respond
}
alias respondOFF {
  /echo 4Auto~11Response --OFF--
  /disable #respond
}
 #respond on
on *nick:{
  ( if $nick == radiobot ) && #respond on
   aline $network $chan  ?????not sure  $network $chan
#respond end
on *:Unload:/echo 4Thanks 
  

#135286 10/11/05 04:21 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:load: {
  echo 4Auto~11Respond System   
  echo 4[Turn On = /respondON] [Turn Off = /respondOFF]
}

menu * {  
  AutoRespond  
  .On:.enable #respond   
  .Off:.disable #respond
}

alias respondON {  
  echo 4Auto~11Respond --ON--  
  enable #respond
}

alias respondOFF {  
  echo 4Auto~11Response --OFF--  
  disable #respond
} 

#respond on
on *:Nick: {
  if ($nick == radiobot) {
    if (!$window(@Radio)) window -l @Radio
    aline @Radio $network ...
  }
}
#respond end


-Andy

#135287 10/11/05 05:19 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the basic stuff, which you can add the other stuff around
on *:text:*:#somechan: {
if ($nick == thebot's-nick) {
scon -a botecho $!network Bot: $$1-
}
}
alias botecho {
if ($1 == net-to-send-text-to) { msg #channeltosendto $2- }
}


use $network to get the network ident to put in where the red text is, the rest is the bots name and channel that the text originates from and the channel to send to

#135288 10/11/05 10:42 AM
Joined: Oct 2005
Posts: 51
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 51
Quote:
if ($nick == thebot's-nick) {

ok mike on this so should it look like this?
Code:
 
($nick == radiobot-nick)
 

Quote:
scon -a botecho $!network Bot: $$1-


and that staies same way right $!network ?
so why do u use ! in the net work just tring 2 learn

#135289 10/11/05 03:44 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Sorry, it must look like I meant the -nick had to be there
if the bot's name is radiobot then the line is

if ($nick == radiobot) {

the ! does belong in that $!network so that the $network identifier
isnt parsed in the first alias, but is in the second one (botecho)


so if the following were the channels and Network name (not server, network)
Code:
Source channel: #MusicAppreciaton
Bot Name: radiobot
Network to Send to: RedSkiesAtNight
Channel to Send to: #BigBrother

on *:text:*:#MusicAppreciaton: {
  if ($nick == radiobot) {
  scon -a botecho $!network RadioBot: $$1-
 }
}
alias botecho {
  if ($1 == RedSkiesAtNight) { msg #BigBrother $2- }
}


Link Copied to Clipboard