pet api implemented for IRC