GoodieIRC is a modular framework for bots written in php. It supports several kinds of modules to make any client-based type of bot possible.