# Built-In

There are a few useful commands provided out-of-the-box, for your convenience.

The following command configuration entries are found under the `builtin` field and all share the same options as a [base command](https://axieum.gitbook.io/chatter-for-minecraft/discord/commands/..#command).

{% code title="config/chatter/discord/commands.json5" %}

```javascript
{
	// Built-in Discord commands
	"builtin": {
		// ...
	}
	// ...
}
```

{% endcode %}

## Uptime

Displays for how long the Minecraft server has been online.

![](https://2905471890-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWJ0CGscN1zQsA_eF9d%2F-MXF4SBrsy_JnqzIXDvd%2F-MXFOJKlrVEz4Fh3JlHy%2Fchatter_discord_uptime_command.gif?alt=media\&token=50d44741-0c88-408c-b758-d8107afddd81)

```javascript
// Displays for how long the Minecraft server has been online
"uptime": {
	/**
	 * A message template that is formatted and sent for the server's uptime
	 * Use ${uptime[:format]} for the duration
	 */
	"message": "The server has been online for ${uptime} :hourglass_flowing_sand:",
	// True if the command should be available for use
	"enabled": true,
	// Trigger name for the command
	"name": "uptime",
	// Any alternative trigger names for the command
	"aliases": [],
	// A brief description of what the command does
	"help": "Shows for how long the server has been online",
	// Details the correct usage of the command, e.g. <username> [count]
	"usage": null,
	// True if the command should be hidden from help messages
	"hidden": false,
	// If defined, restricts access to Discord users with the given role identifier or name
	"role": null,
	// The number of seconds a user must wait before using the command again
	"cooldown": 0,
	// To whom the cooldown applies (see https://git.io/JtpsJ)
	"cooldownScope": "USER"
},
```

#### Message

| Token                | Type     | Meaning                                 | Example         |
| -------------------- | -------- | --------------------------------------- | --------------- |
| `${uptime[:format]}` | Duration | For how long the server has been online | 1 day 5 minutes |

{% hint style="info" %}
Please refer to the [templating guide](https://axieum.gitbook.io/chatter-for-minecraft/misc/templating) for instructions on substituting player names, etc.
{% endhint %}

## TPS

Displays the Minecraft server's current ticks per second.

![](https://2905471890-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWJ0CGscN1zQsA_eF9d%2F-MXF4SBrsy_JnqzIXDvd%2F-MXFOG8LsV0Z7Srf_iXd%2Fchatter_discord_tps_command.gif?alt=media\&token=9b8c0187-fba3-48d2-a1ce-966bde96b19d)

```javascript
// Displays the Minecraft server's current ticks per second
"tps": {
	// True if the command should be available for use
	"enabled": true,
	// Trigger name for the command
	"name": "tps",
	// Any alternative trigger names for the command
	"aliases": [
		"ticks"
	],
	// A brief description of what the command does
	"help": "Shows the server's current ticks per second",
	// Details the correct usage of the command, e.g. <username> [count]
	"usage": null,
	// True if the command should be hidden from help messages
	"hidden": false,
	// If defined, restricts access to Discord users with the given role identifier or name
	"role": null,
	// The number of seconds a user must wait before using the command again
	"cooldown": 10,
	// To whom the cooldown applies (see https://git.io/JtpsJ)
	"cooldownScope": "CHANNEL"
}
```
