WETBOT
ManagersCommands
English
English
  • WETBOT - Introduction
  • What is reputation and luck?
  • Wipe
  • Premium
  • Commands
    • General commands
    • Shop commands
    • Inventory commands
    • Profile commands
    • Context commands
    • Admin commands
  • Guide
    • Setting the bot
    • Setting server currency
    • Receiving currency, experience, reputations
    • Items
      • Adding an item to a shop
      • Creating cryptocurrency
      • Auto-delivery items to shop
      • Craft of the item
      • Creating a case
      • Using the item
      • Ways to obtain an item
    • Create achievements
    • Create bonuses channels
    • Create quests
    • Wormholes
    • Create wormholes styles
    • Create category for shop
    • Create income roles
    • Autovoice channels
    • Select menu roles
    • Create gifts (manager-gifts)
    • Create custom buttons
    • Create jobs
    • Cron patterns
    • Inventory roles
    • Create custom role
  • Variables
    • Variables: wormholes styles
    • Variables: autovoice channels
    • Variables: jobs
  • API
    • Docs for API
  • Privacy policy
  • Terms of use
  • Authors of the documentation
  • Special thanks
Powered by GitBook
On this page
  • Syntax of cron pattern;
  • Quick examples
  • It is also possible to use the following "nicknames" as pattern.
  • A convenient website for generating cron patterns #1
  • A convenient website for generating cron patterns #2
  • A convenient website for generating cron patterns #3
  • A convenient website for generating cron patterns #4
  1. Guide

Cron patterns

Syntax of cron pattern;

// ┌──────────────── (optional) second (0 - 59)
// │ ┌────────────── minute (0 - 59)
// │ │ ┌──────────── hour (0 - 23)
// │ │ │ ┌────────── day of month (1 - 31)
// │ │ │ │ ┌──────── month (1 - 12, JAN-DEC)
// │ │ │ │ │ ┌────── day of week (0 - 6, SUN-Mon) 
// │ │ │ │ │ │       (0 to 6 are Sunday to Saturday; 7 is Sunday, the same as 0)
// │ │ │ │ │ │
// * * * * * *

Quick examples

This will runs every minute

* * * * *

This will runs every Sunday

0 0 0 * * 7

Every 30 minutes from 9 a.m. to 5 p.m.

0 */30 9-17 * * *

From Monday to Friday at 11:30

00 30 11 * * 1-5

Every 10 minutes

0 */10 * * * *

At midnight

00 00 00 * * *

It is also possible to use the following "nicknames" as pattern.

Nickname
Description

@yearly

Run once a year, ie. "0 0 1 1 *".

@annually

Run once a year, ie. "0 0 1 1 *".

@monthly

Run once a month, ie. "0 0 1 * *".

@weekly

Run once a week, ie. "0 0 * * 0".

@daily

Run once a day, ie. "0 0 * * *".

@hourly

Run once an hour, ie. "0 * * * *".

A cron pattern with an interval of less than 60 seconds cannot be created!

All patterns are executed in the UTC time zone

PreviousCreate jobsNextInventory roles

Last updated 8 months ago

A convenient website for generating cron patterns
#1
A convenient website for generating cron patterns #2
A convenient website for generating cron patterns #3
A convenient website for generating cron patterns #4