Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

time-based job scheduler

- - - - -

  • Please log in to reply
5 replies to this topic

#1
OFFLINE   alex

alex

    Regular Member

  • Subscriber
  • PipPipPip
  • 63 posts
12
A step in the right direction
  • LocationFrance

A way to schedule jobs (commands or scripts) to run periodically at fixed times, dates, or intervals.

 

Thanks



#2
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame

A way to schedule jobs (commands or scripts) to run periodically at fixed times, dates, or intervals.

 

Thanks

 

What you want to run? Give some more detail info or examples. I understand you are asking for cron but on what specific area you are planning to use it. 



#3
OFFLINE   alex

alex

    Regular Member

  • Subscriber
  • PipPipPip
  • 63 posts
12
A step in the right direction
  • LocationFrance

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!



#4
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

You could do this with lua.

 

http://www.lua.org/pil/22.1.html



#5
OFFLINE   alex

alex

    Regular Member

  • Subscriber
  • PipPipPip
  • 63 posts
12
A step in the right direction
  • LocationFrance

Seems cool when you know lua :/



#6
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users