Store a timestamp in a file.  When the bot is activated retrieve the old
timestamp and calculate the difference between then and how.  Store that
value in another file or database.  Update the file with a fresh timestamp.
-Kevin

----- Original Message -----
From: "Thomas "omega" Henning" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 11:22 AM
Subject: [PHP] Timer


> Is this possible:
>
> Im making a bot in PHP and i need a timer. Lets say noone ses anything for
> 2mins in the channel after that the bot ses something. And if the bot
> recieves an msg the timer clears. Is this possible 2 be done?
>
> Thomas "omega" Henning
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to