English

Creation and Configuration of the Discord Bot

In this section, we will guide you step by step through the creation and configuration of a Discord bot designed for the administration and management of Xelyos solutions.

Xelyos Liability: Xelyos cannot be held responsible for the actions of the bot on the Discord server. The use and configuration of the bot are the sole responsibility of the server administrator.

Bot Permissions: The bot does not require any specific permissions to perform actions on the server. Its only required access involves reading the list of users and their roles, as well as sending notifications.

Creating a Dedicated Bot: To ensure compatibility and prevent any interference with existing bots, it is essential to create a bot exclusively dedicated to the system, without reusing credentials from a preexisting bot.

We will cover the following steps:

The goal is to make the process clear and accessible, even for those who are new to managing Discord bots. By following this guide, you will be able to quickly set up your bot.

Let’s move on to the first step: creating the Discord bot.


Step 1: Creating the Bot

1. Access the Discord Developer Portal

Go to the official Discord Developer Portal website. This is where you will manage your bot and its settings. Make sure you are logged in with your Discord account.

2. Create a New Application

Once on the portal:

image.png

3. Enter the Application Name

image.png

4. Add General Information

After creating the application, you will be redirected to the bot management page.

image.png


Step 2: Inviting the Bot to Your Discord

Although this step is done early in the process, it will allow us to quickly finalize the installation and move on to the next steps without complication. Don’t worry, this initial configuration doesn’t require advanced permissions for the bot, except the ability to send messages to users.

Instructions for Installing the Bot:

image.png

image.png

image.png


Step 3: Configuring OAuth2

This step is essential to enable user authentication within the xelyos solutions. We will configure the necessary information for the bot to interact correctly with the website.

1. Retrieve the Client ID and Client Secret

image.png

image.png

image.png

2. Configuring the Redirect URL

To finalize the OAuth2 configuration, we need to define a redirect URL. This URL is used to verify and process the user information after authentication via Discord.

image.png

Example:

If your domain is darkchatrp.xelyos.fr, your redirect URL will be:

image.png


Step 4: Configuring the Bot Settings

1. Set the Bot’s Name, Avatar, and Banner

image.png

2. Retrieve the Bot Token

image.png

image.png

Warning: The token is confidential, do not share it anywhere else!


Step 5: My Bot Stays with Me

This step ensures that your bot is not public and can only be available on your Discord server.

1. Modify the Installation Link

image.png

2. Disable the Public Bot Option

image.png