Remove delay from Script.add (#25)

This commit is contained in:
folex 2022-04-25 17:21:02 +04:00 committed by GitHub
parent 69dbb49db6
commit d24d2bf6ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,10 +247,7 @@ service Script("script"):
-- - if set, script will be ran once in the interval
-- - if not set, script will be ran only once
-- (NOTE: an actual interval may vary by up to 3 seconds)
-- delay - delay script run time in seconds
-- - if set, script will be delayed on the delay time
-- - if not set, script will be delayed on a random value in [0, interval]
add(air_script: string, interval: ?u64, delay: ?u64) -> string
add(air_script: string, interval: ?u64) -> string
-- Removes recurring script from a node. Only a creator of the script can delete it
remove(script_id: string) -> bool