
nick <nick>
user <user> . . :<real name>request: PING :irc.server.net
reply: PONG :irc.server.net





Pinkbyte wrote:Well, I need such script, becose i want to view on my webpage online status of my eggdrop bot. What i need to write such script? Please not to send me to RFC standarts etc. Only really help, better on PHP...


De Kus wrote:are you running your eggdrop with livestats? If so, you could query your eggdrop for users on its channels.
else you could write a tcl script which waits for incomming connections of your web page to just reply the whois. I believe its unncessary traffic for an IRC network to login a session just to do a whois and quit.
The login is quite simple, you need just 2 lines:
- Code: Select all
nick <nick>
user <user> . . :<real name>
then you will need ro reply to a PING request from the server with PONG and the argument of the previous PING. Some servers might even enforce you replying to some extra stuff, often CTCP.
ex. for PING:
- Code: Select all
request: PING :irc.server.net
reply: PONG :irc.server.net

Return to General Webmastering
Users browsing this forum: No registered users and 1 guest