mIRC Home    About    Download    Register    News    Help

Print Thread
#180769 13/07/07 05:54 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I want to make a custom quit message for my bot.
In that message it will transmit uptime duration and the amount of requests processed, stuff like that.

What event should I use?
I dont want to halt the quit messages from other users, I only want to customise the bots own quit message via a script and halting its default message obviously...

Code:
on me:*:QUIT:{
  msg $chan Some uptime and statistics here.
  haltdef
}


Something like that?
Thanks in advance!

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
What about /quit Some uptime and statistics here.?

O
Old
Old
O
an on *:QUIT: event won't work when you, personally, quit because one, it works off the raw message you'd receive and two, you're closing your client wink

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Besides the use of /quit with the info there, you could also use a timer to continually update mIRC's Quit message every X seconds with new uptime information. If you set it to not display seconds, then you can just update the Quit message once a minute, which wouldn't be difficult or cpu intensive.

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Ok, thanks for the reponses guys. I'll use the /quit command.


Link Copied to Clipboard