MyChat Scripts Engine: about time-scripts
MyChat Server time-scripts run script programs exact at the specific time (something like a schedule but without periodicity).
The script launches for one time at the specific time, finishes its work and gets deleted from the queue by the system. The work result is recorded in the server log. Each script has its name, body, (source code) and execution time with the accuracy of seconds.
Time-are added from other scripts to the execution queue by the mAddAutoScriptFromString or mAddAutoScriptFromTemplate function from the template by the name. Names of time-scripts can match.
The Scheduled script can be deleted at any time by the mDeleteAutoScriptByName function by the time-script name.After server's restart, all unfinished time-scripts are deleted from MyChat Server memory.