Page 1 of 1

Ping

Posted: Mon Aug 08, 2011 10:01 pm
by speeddemon8803
Make it so that when you ping the bot with !ping it could show you an actual lag time instead of just a message with a response. Possibly a %lag variable coded into the bot.

Re: Ping

Posted: Mon Aug 08, 2011 10:06 pm
by Indy
The IRC protocol doesn't timestamp messages that way, so it can't tell how much lag there is between you and it. It could report the last known round-trip time between it and the IRC server though.

Most clients support CTCP (as does the bot), so you can also get a round-trip time by typing /ctcp botnick ping

Re: Ping

Posted: Fri Aug 12, 2011 12:05 am
by speeddemon8803
I mean I know it can show the ping time it takes to get to a bot in the ctcp...but can you make that a public command as well? I have seen it in regular mIRC scripts so I know the IRC protocol itself supports it. I.e. !ping Alan would show the lag time of myself in open room instead of CTCP. (I know you don't want to bloat the bot, but respectfully you do have a few commands that are somewhat redundant.)

Re: Ping

Posted: Fri Aug 12, 2011 12:12 am
by Indy
A script that does that would just be a wrapper around CTCP. (ie. someone would type !ping Alan, the client sends a CTCP PING to Alan, when it gets a reply displays it to the requestor)

But yes, that should be able to be added.

Re: Ping

Posted: Fri Aug 12, 2011 12:17 am
by speeddemon8803
Wrapper and an optional variable possibly? Not in ircbot.text by default but able to be added if the user wants.