# Config Explanation

{% hint style="danger" %}
**THIS PAGE IS OUTDATED. IT WILL BE UPDATED SOON.**
{% endhint %}

\*Required field

## BOT

### Token\*

The token is **a unique key** to your bot. Code needs it to log in as your bot.

{% hint style="info" %}
Don't know how and where to find the bot token? Read [**this**](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token#fetching-your-bots-token).
{% endhint %}

### Prefix\*

A prefix is something that you attach before every command. Most bots have one, which helps to reduce RAM usage and you can have multiple bots with the same commands, but different prefixes.\
Like **!**&#x68;elp, **?**&#x6D;eme, or **/**&#x69;nfo

You can enter any character. The most popular are **`? ! , . / > ;`**.

### Status

Status is activity text below your name.\
You can publicly share what you are doing right now with your status.\
Share what game you're playing, what song you're listening to, and what stream you're watching.

<div align="left"><img src="/files/-MeKXhqhjk95SyQlmKBd" alt=""></div>

<div align="left"><img src="/files/-MeGURJQ4zyHlapDROj7" alt=""></div>

<div align="left"><img src="/files/-MeGUVOWzg3tQcgo9nuG" alt=""></div>

<div align="left"><img src="/files/-MeGUc9PU5gUA29QoP5B" alt=""></div>

You can type here "**Minecraft**", "**mc.hypixel.net**" or something like that.

<div align="left"><img src="/files/-MeKdvtMC8vFK0eq5KPD" alt="Status &#x26; type editing"></div>

{% hint style="warning" %}
If you don't put anything in there, **bot status will be disabled**!
{% endhint %}

{% hint style="danger" %}
You don't choose here the activity type, like "**playing**" or "**listening**"!
{% endhint %}

You can also use here `{onlinePlayers}` and `{maxPlayers}`.![](/files/hQxpeRCFz9yhKZud3mNI)<img src="/files/xAaiQXuOL4f8ie91wIJ1" alt="" data-size="line">

It's important to enable [autoStatus](#undefined) to update this data in period.

### Activity

If you want to use the [**status** ](https://docs.petyxbron.cz/config/config-info#activity)**function**, you need to choose the **activity type**.

**This project supports these types:**

#### ・playing

<div align="left"><img src="/files/-MeKc4N6xGiuPpKbHmxh" alt=""></div>

**・watching**

<div align="left"><img src="/files/-MeKbvVoXeZtXIxMBriV" alt=""></div>

**・competing**

<div align="left"><img src="/files/-MeKbVGrk0dKBJtM1HZE" alt=""></div>

**・listening**

<div align="left"><img src="/files/-MeKblgHlh5q5uI_59g1" alt=""></div>

{% hint style="warning" %}
If you will not specify the activity type, it [will be changed](https://github.com/PetyXbron/minecraft-bot/blob/1ca7769b1b4dc223a0a7c069a7349d109f857230/index.js#L48-L53) to the "**playing**" type.
{% endhint %}

{% hint style="warning" %}
If you will specify an unsupported activity type, it [will disable](https://github.com/PetyXbron/minecraft-bot/blob/1ca7769b1b4dc223a0a7c069a7349d109f857230/index.js#L55-L60) the bot status function totally.
{% endhint %}

## SERVER

### Name

*Your server name.* Like "Hypixel".\
This is the only string for embeds.\
That means, that you can enter really anything.

### Type\*

*Type (edition) of your server.*\
You can type here only "**bedrock**" or "**java**".

### IP *address*

*The IP address of your Minecraft server.*\
Do not enter a port here.\
Enter something like "**mc.hypixel.net**"\
IP is important for this project.\
We need it for getting data from your server.\
Like how many players are playing right now.

### Port

*The port of your Minecraft server.*\
You don't really need to fill in the port,\
but if you have a server with not the default port (java 25565, bedrock 19132)\
the code wouldn't connect to your server and get data from it.\
If you will not specify the port, it will be automatically replaced with the default port, depending on your server type.

### Icon

*Icon link of your Minecraft server.*\
If you don't want to place the author icon in embeds as Discord's server icon, you can specify there the link of your own icon.

{% hint style="warning" %}
Icon link must include the protocol type (**HTTP**, **HTTPS**) at the start.\
And the project supports only **png**, **jpg**, **webp**, **gif** types.
{% endhint %}

### Vote

*Vote link of your Minecraft server.*\
It's not required, but if you want to use the [**vote command**](https://github.com/PetyXbron/minecraft-bot/blob/main/commands/vote.js), which gives to the user vote link you need to specify this string in config.\
Example: <https://minecraftpocket-servers.com/server/80103/vote/>

## SETTINGS

### Warns

### Debug

### Ready Scan

### Split

### AutoStatus

### Status (StatusCH)

### VotingCH

## VOTING CH

The voting channel is a channel in Discord guild.\
This project (bot) can give like 👍 and dislike 👎 emoji reactions to every new message in the voting channel.

<div align="left"><img src="/files/-MejY9Dg6WsJ5LJ7qIVO" alt=""></div>

{% hint style="info" %}
All messages starting with **the** [**prefix**](/1.8/installation/config.md#prefix), won't receive any reactions.
{% endhint %}

{% hint style="info" %}
**Member with "**[**MANAGE\_MESSAGES**](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags)**" permission** and **message author** can delete reactions in **30 seconds (by default)** with a new reaction ❌ added.
{% endhint %}

### Time

Time for how long it will take to delete the cancel reaction (default ❌).

### Reactions

There are 3 reactions:

1. **Positive vote** (default 👍)
2. **Negative vote** (default 👎) (not filling emoji in the field - skips straight to 3. reaction)
3. **Cancel button** (default ❌)

You can add

* **Browser emojis** (The character, showing whatever image would be native for the browser.)\
  😀😁😂🤣😃😄😅😆😉😊😋😎😍😘🥰😗
* **Custom discord server emojis** (Custom emojis you uploaded to a Discord server.)\
  \&#xNAN;**<:name:ID>** like `<:HeyGuys:578715444047904775>`

<div align="left"><img src="/files/-MejbPrwvEBM6DWFiydY" alt=""></div>

### Guild ID

The ID of your guild, where you want to have a voting channel.

{% hint style="info" %}
Watch [**this tutorial**](https://youtu.be/NLWtSHWKbAI?t=18) on YouTube to know how **to copy the ID** of a **user**, **channel**, or **guild**.
{% endhint %}

### Channel ID

The ID of your channel, where you want to have voting messages.

{% hint style="info" %}
Watch [**this tutorial**](https://youtu.be/NLWtSHWKbAI?t=18) on YouTube to know how **to copy the ID** of a **user**, **channel**, or **guild**.
{% endhint %}

## STATUS CH

### Time

### Guild ID

The ID of your guild, where you want to have a channel with an auto-changing status message.

<div align="left"><img src="/files/-MeeufWTY39xI9nEEX0g" alt=""></div>

### Channel ID

The ID of your channel, where you want to have the auto changing status message.\
\**Copy the channel ID by right-clicking on the channel and then clicking 'Copy ID'*

## EMBEDS

### Colors

## COMMANDS

If you want to adjust the commands aliases, you can.

<div align="left"><img src="/files/-MeGOgampKlK_gkpJ9l5" alt="Commands aliases editing"></div>

You can also disable some commands;

<div align="left"><img src="/files/-MeGP64WQg2I0k2KkYoi" alt="Command settings (config)"></div>

Change the value to **false** to **disable the command**.\
Change the value to **true** to **enable the command**.


---

# 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://mb.petyxbron.cz/1.8/installation/config.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.
