BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: kardsen on July 17, 2008, 07:06:42 pm
-
Is there a function in the bot for timed events that I can use?
Say every hour have it same something in chat?
-
$this -> register_event('cron', '1hour');
...
function cron()
{
...
}
would be the place to start ;)
-
You could use true timed events as supported by the timer module. Read the description at the top of the main/XX_Timer.php.
Though if you simply want to output some text once per hour the cron job is the thing to use :)
-
excellent :)
Tyvm