This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Pinging Server

Help for those learning Tcl or writing their own scripts.
Post Reply
s
skull

Pinging Server

Post by skull »

Hi,
I want to ping IRC server every n minutes and I found a script which does that..
Just wanted to make sure this is what I want:

Code: Select all

putquick "PRIVMSG $botnick :RAW -q PING $server"
Thanks
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Re: Pinging Server

Post by willyw »

skull wrote:Hi,
I want to ping IRC server every n minutes and I found a script which does that..
Just wanted to make sure this is what I want:

Code: Select all

putquick "PRIVMSG $botnick :RAW -q PING $server"
Thanks
I don't think so.

Perhaps I don't understand just what it is that you need to do, and why.

Can you demonstrate? That is: can you do what you want, with your irc client?
If so, show us here what it is that you have it do.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Re: Pinging Server

Post by willyw »

skull wrote: Just wanted to make sure this is what I want:

Code: Select all

putquick "PRIVMSG $botnick :RAW -q PING $server"
Another thought:

For simple one-liners like that, there is a quick and easy way to test.
If you have enabled the use of the .tcl command for your (owner's) use in the partyline, then you could do:

Code: Select all

.tcl putquick "PRIVMSG $botnick :RAW -q PING $server"
and see what happens.

If you need to see more, (and again if you have enabled it's use - this time, it is raw logging - see ' set raw-log ' in eggdrop.conf ), do: .console +rv
Those two flags let you see raw inbound and outbound respectively.
( You can read about what all the console flags do with .help console )

I hope this helps.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Post Reply