> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tournamentsystem.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up the Discord bot

> Choose who can use the Tournament System bot's commands in your Discord server, and where.

MelCat Interactive adds the Tournament System bot to your league's Discord server. Until you set it up, only the server's owner and administrators can use its commands. Everything here happens in Discord.

> [!WARNING]
>
> Give `/ask` only to staff, and use it in staff-only channels. The assistant can read staff records, such as notes and bans, and its replies are posted for everyone in the channel. It can also create custom commands.

## Before you start

* You need to be able to change your Discord server's settings, as an owner or administrator.

## Choose who can use the commands

1. In Discord, open your server's **Server Settings** and select **Integrations**, then **Tournament System**.
2. Under **Roles & members**, select **Add roles or members** and add the roles that should use the bot's commands. To stop everyone else, set **@everyone** to ✗.
3. To keep the commands to some channels, set **All channels** to ✗ under **Channels**, then select **Add channels** and add them.
4. To set one command differently, select it in the list below and choose its own roles and channels. A command's own choices replace the ones for all commands.

## Let the bot into private channels

The bot sees the channels everyone can see. A private channel hides it like any other member, so the bot can't post there.

1. In the private channel's settings, open **Permissions** and select **Add members or roles**.
2. Add the **Tournament System** role and allow **View Channel** and **Send Messages**.

The **Tournament System** role is Discord's own role for the bot. You can change its permissions and move it in the role list, but you can't give it to anyone.

## Next steps

> [card] [Discord bot commands](https://docs.tournamentsystem.xyz/discord/bot-commands.md)
>
> What each command does, and turning the bot off.

> [card] [Team roles and channels](https://docs.tournamentsystem.xyz/discord/team-roles-and-channels.md)
>
> How the bot looks after each verified team's role and channels.

> [card] [Review and verify teams](https://docs.tournamentsystem.xyz/season/verify-teams.md)
>
> Verified teams appear in the roster forum.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.