mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2012
Posts: 8
K
kkrotto Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: May 2012
Posts: 8
I usually join a channel that need to be invited to join, so when I connect the network I send a command which the bot returns with the invite to join in, but sometimes the bot it is offline.

Then I've tried to write a script to detect when the bot is online, in order to achieve that I used this code without success.
Code:
on 1:NOTICE:*nickofthebot not*:*:{
    .timer9 0 1800 whois nickofthebot
}

since I have no channel to stay waiting for it, I wondered if it was possible to run a command (that ask for the invite) as soon as the whois tells me it's online.

Looking at the help file I tried to use the notify list of the mirc, which can give a whois of the nick as soon as it connects, but I don't know how to handle the event whois if there is one.

I use a old version of the mirc 6.16, does anybody know how I could achieve what I'm looking for?

Last edited by kkrotto; 13/09/17 04:01 AM.
Joined: May 2012
Posts: 8
K
kkrotto Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: May 2012
Posts: 8
I solved it. It was NOTIFY instead of Notice.

So first I set the nick on the notify list and then used

Code:
on 1:NOTIFY:{
  if ($network == nameofthenetwork) {
    .msg nickofthebot invite command
  } 
}


Link Copied to Clipboard