Example: daily draw
To generate more traction to your game, let us assume that you decide to run a daily draw: one of your registered players is randomly selected and the winner receives a gift. We will create a script - called "scheduleDraw" in this example - which you use to schedule a daily draw or to cancel it (in order to cancel the draw, you will have to pass the "cancel" parameter set to "true"). We also create another script that implements the actual draw. This latter is regularly executed on a daily basis.