jaxl library has callbacks to different user defined functions
function getId($payload, $jaxl) { <--------- some function
return $payload;
}
$echobot = new main();
$jaxl->addPlugin('jaxl_post_auth', array($echobot, 'poAu')); <--- callback to a function
is it possibe to have a callback that is called continuously after a fixed interval
say
$jaxl->addPlugin('jaxl_cont_func', array($echobot, 'callAfterEverySecond'));
a bit late but if you still care JAXLCron functionality must be used here…. check this for an example: http://abhinavsingh.com/blog/2010/01/get-lyrics-for-any-song-using-xmpp-and-php-right-into-your-im-add-lyricsflygtalkbots-com/ , also do checkout v3.x branch which is better/cleaner than v2.x