The epic PHP IRCBot. It has plugin support and can almost do anything.