Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
Can anyone Make a Basic PHP IRC Bot that reads Users in Channel?
  • Xin
    Posts: 3,251
    I would run it on the server so i can have a page maybe on the side bar or something that reads all the users in the IRC i think this would be very useful, anyone know php that can do this?
    Xin
  • chroniccommand
    Posts: 1,389
    I know some decent PHP. Some members of Poison are pretty good at PHP(x3n0n and Anon2011) you could ask them. I could try.
  • Xin
    Posts: 3,251
    Okay il ask them when they come on :)
    Xin
  • Sh3llc0d3
    Posts: 1,910
    Damn you and your php Xin, some nice perl irc bots about.
  • Xin
    Posts: 3,251
    said:


    Damn you and your php Xin, some nice perl irc bots about.



    True but the whole point is that it needs to be included into the sidebar or homepage which cant be done really in perl.
    Xin
  • Sh3llc0d3
    Posts: 1,910
    Ahhh I see, suppose it could be done it perl-cgi but it'd be fiddly and well beyond me.
  • Xin
    Posts: 3,251
    Yeah i dont wanna get into that, its just another vector for attack if i dont configure it right.
    Xin
  • sangf
    Posts: 203
    for the irc bot you will need either a constant connection to the network and channel or an interval where the channel is polled for new users. first needs unlimited execution time (set_time_limit(0)), second needs a cronjob/sceduled execution.
  • Xin
    Posts: 3,251
    said:


    Easiest way would be a Php script that would read a file on the server / remote server.
    And a perl bot which reads users and updates every x mins/secs.

    That way you can make the php script use Ajax and seamlessly update. With a temp array of names only only if its been X time does it update that array.

    Having the check would make sure that you can't crash the script/webserver with a dos attack if you were to have a phpbot, because every client would activate a new bot, thus having a huge load on the server.

    (and hi, first post)



    Thanks Cynofield welcome to iE, i would also need to be careful to sanitise the input so XSS cant be done.
    Xin