New erlang api for ybot module