mIRC Home    About    Download    Register    News    Help

Topic Options
#261368 - 13/09/17 04:48 AM On Event Whois or Notify List Detects it's Online
kkrotto Offline
Nutrimatic drinks dispenser

Registered: 26/05/12
Posts: 5
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?


Edited by kkrotto (13/09/17 05:01 AM)

Top
#261369 - 13/09/17 05:15 AM Re: On Event Whois or Notify List Detects it's Online [Re: kkrotto]
kkrotto Offline
Nutrimatic drinks dispenser

Registered: 26/05/12
Posts: 5
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
  } 
}

Top