Class for writing myBB bots in PHP