Jump to content

time-based job scheduler


alex

Recommended Posts

  • Subscriber

exemple, could be added in shrubbot.cfg

 

[cron]

when = every sunday 8pm

exec = !pistolwar on; bot maxbot -1; exec pistolwarcycle.cfg

 

[cron]

when = every monday 1am

exec = !pistolwar off; bot maxbot 10; exec objectivecycle.cfg

 

[cron]

when = every 120 s

exec = !spec999

 

[cron]

When = 1-1-2016

exec = say HAPPY NEW YEAR!!!!

 

[cron]

when = every month

exec = dboptimize

 

[cron]

when = every year

exec = dbcleanup

 

Things like that!

Link to comment
Share on other sites

Yes indeed a lot of things can be accomplished with lua.

That is why it is in the mod so servers can add their own features and customize them to their exact needs.

Someone may be willing to make one for you or I may give it a go when I get bored.

 

Or you could learn lua, it is very easy compared to most other languages, especially if you already know some other languages.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...