Hi guys,

I've started making a bot in php (run from the command line) for IRC. I am finding it fairly simple to do what i want except one thing. How do i stop my script from terminating once it has executed? I can connect to an IRC server and join channels but once there is nothing for the bot to do it just terminates. Any ideas for a main loop? OR are there any existing modules that do this?

Thanks in advance!