Page 1 of 1

Author:  speeddemon8803 [ Mon Aug 08, 2011 10:01 pm ]
Post subject:  Ping

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.

Author:  Indy [ Mon Aug 08, 2011 10:06 pm ]
Post subject:  Re: Ping

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

Author:  speeddemon8803 [ Fri Aug 12, 2011 12:05 am ]
Post subject:  Re: Ping

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.)

Author:  Indy [ Fri Aug 12, 2011 12:12 am ]
Post subject:  Re: Ping

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.

Author:  speeddemon8803 [ Fri Aug 12, 2011 12:17 am ]
Post subject:  Re: Ping

Wrapper and an optional variable possibly? Not in ircbot.text by default but able to be added if the user wants.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group