Skip to content

Configuration for _timedcommands.json

spikeydragoon edited this page May 12, 2021 · 3 revisions

Basic formatting for the config should look like this. If you are not using the rcon command timers you can skip this.

Below are three examples of how you can configure your timers.

  • Name: Name of the timer should be different than the other timers.

  • Servers: List of servers to run the command on. This should match the NameTag. You can also just put the word all to run it on all active servers.

  • Commands: List of all commands for the timer to run.

  • Command: Name of the command to run OR type message to send. For list of commands see the discord role config.

  • Type: You have two types Command for rcon commands and Broadcast for sending messages. The type depends on what you have in command.

  • Active: Set to true to active it or false for bot to ignore it.

  • Frequency: You have three options here minute, hour, day for how often it happens.

  • Timespan: The interval you want it to run based on the Frequency.

  • TimeOffset: 24 hour format of when time of day you want the timer to start from. So instead of just every random hour you can tell it to do every hour after 4am.

{
  "TimedCommands": [
    {
      "Name": "Command1",
      "Servers": [
        "ServerNameTag1",
        "ServerNameTag2"
      ],
      "Commands": [
        {
          "Command": "messageoftheday",
          "Type": "Command"
        }
      ],
      "Active": false,
      "Frequency": "minute",
      "Timespan": "30",
      "TimeOffset": "00:00:00"
    },
    {
      "Name": "Command2",
      "Servers": [
        "ServerNameTag1",
        "ServerNameTag2"
      ],
      "Commands": [
        {
          "Command": "About to save the world",
          "Type": "Broadcast"
        },
        {
          "Command": "saveworld",
          "Type": "Command"
        }
      ],
      "Active": false,
      "Frequency": "hour",
      "Timespan": "1",
      "TimeOffset": "00:00:00"
    },
    {
      "Name": "Command3",
      "Servers": [
        "ServerNameTag1",
        "ServerNameTag2"
      ],
      "Commands": [
        {
          "Command": "About to wipe all wild dinos",
          "Type": "Broadcast"
        },
        {
          "Command": "DestroyWildDinos",
          "Type": "Command"
        }
      ],
      "Active": false,
      "Frequency": "day",
      "Timespan": "1",
      "TimeOffset": "00:00:00"
    }
  ]
}