# 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](/chatter-for-minecraft/discord/commands.md#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.

![](/files/-MXFOJKlrVEz4Fh3JlHy)

```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](/chatter-for-minecraft/misc/templating.md) for instructions on substituting player names, etc.
{% endhint %}

## TPS

Displays the Minecraft server's current ticks per second.

![](/files/-MXFOG8LsV0Z7Srf_iXd)

```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"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://axieum.gitbook.io/chatter-for-minecraft/discord/commands/built-in.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
