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,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
What about /quit Some uptime and statistics here.?

Joined: Jul 2007
Posts: 19
O
Old Offline
Pikka bird
Offline
Pikka bird
O
Joined: Jul 2007
Posts: 19
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


http://www.CloudyOneStudios.com
irc.CloudyOneStudios.com:#CloudyOne
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
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