Rastafari has asked for the wisdom of the Perl Monks concerning the following question:

The IRCbot Im going to make shall be running on another computer. I need to connect to IRCbot, by typing the other computers-ip, (maybe pass?), and then I should be able so control it. I only need the bot to ping other people, but I need to define the packetsize and how many packets I will send! Ive been thinking on something like this: http://poe.perl.org/?Poe_cookbook/irc_bots , but offcourse without all the exstra effects! Im sorry for my very bad english, but I hope you can help me.

Replies are listed 'Best First'.
Re: IRCbot - ping
by halley (Prior) on May 26, 2005 at 13:55 UTC
    Before we tell you how to flood other people with automated pings, maybe you could explain the real community value of your idea.

    --
    [ e d @ h a l l e y . c c ]

      Okay.. I just read my question through some times, and I can see it look like a 'Newbie hackerquestion', but thats not my intension. The reason is that we have a ircchanal with over 20 members, but because we have the chanal on our own line and dont accept "Away" or "Deaduser". We want to could ping them all, and see if thay are alive. And then I got the idear, instead of pinging one person at the time, we could ping them all at the same time, but do then I thought I needed a bigger packetsize!? I dont hope you now wont to help me, and don not think that im a wonnabehacker. Regards
        An IRC server will automatically kill a connection if the client fails to respond to the ping message, so no need for the channel manager to worry about that. People that are set to "away" will be reported as such by the server when whoissed. So truth be told I really can't think of a reason why you'd need to ping people in this instance.

        If you *really* want to ping people you could use ctcp ping as implemented on top of the irc protocol. Most clients will respond to these pings, although some might not, that's the downside.


        Remember rule one...