# Bot Discord

Créer un bot Discord pour les solutions Xelyos

# Création et configuration du bot Discord

<span style="white-space:pre-wrap;">Dans cette section, nous allons vous accompagner étape par étape dans la création et la configuration d’un bot Discord destiné à l’administration et à la gestion des solutions </span>****Xelyos****.

<p class="callout warning">****Responsabilité de Xelyos :****<span style="white-space:pre-wrap;"> Xelyos ne peut être tenu responsable des actions du bot sur le serveur Discord. L’utilisation et la configuration du bot relèvent de la responsabilité de l’administrateur du serveur.</span></p>

<p class="callout info">****Permissions du bot :****<span style="white-space:pre-wrap;"> Le bot ne nécessite pas d’autorisations spécifiques pour effectuer des actions sur le serveur. Ses seuls accès requis concernent la lecture de la liste des utilisateurs et de leurs rôles, ainsi que la possibilité d’envoyer des notifications.</span></p>

<p class="callout info">****Création d’un bot dédié :****<span style="white-space:pre-wrap;"> Pour garantir la compatibilité et éviter toute interférence avec des bots existants, il est impératif de créer un bot exclusivement destiné au système, sans réutiliser les informations d’un bot préexistant.</span></p>

<u>Nous allons couvrir les étapes suivantes :</u>

- <span style="white-space:pre-wrap;">Création du bot via la plateforme </span>[Discord Developer Portal](https://discord.com/developers/applications).
- Configuration des permissions et paramètres nécessaires.
- Invitation du bot sur votre serveur !

L’objectif est de rendre le processus clair et accessible, même pour ceux qui découvrent la gestion de bots Discord. En suivant ce guide, vous serez en mesure de configurer votre bot rapidement.

<span style="white-space:pre-wrap;">Passons maintenant à la première étape : </span><span style="color:rgb(186,55,42);">la création du bot Discord</span>.

---

### Étape 1 : création du bot

##### 1. Accéder au Discord Developer Portal

<span style="white-space:pre-wrap;">Rendez-vous sur le site officiel du </span>[Discord Developer Portal](https://discord.com/developers/applications). C’est ici que vous gérerez votre bot et ses paramètres. Assurez-vous d’être connecté avec votre compte Discord.

##### 2. Créer une nouvelle application

Une fois sur le portail :

- <span style="white-space:pre-wrap;">Cliquez sur le bouton </span>****"New Application"****<span style="white-space:pre-wrap;"> ou </span>****"Créer une application"****<span style="white-space:pre-wrap;"> en haut à droite de l’écran.</span>
- Une fenêtre contextuelle s’affichera pour vous permettre de nommer votre application.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/1rFimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/1rFimage.png)

##### 3. Entrer le nom de l'application

- <span style="white-space:pre-wrap;">Donnez un nom à votre nouvelle application. Il peut s’agir de </span>****Dark Chat RP ou XelNews**** ou de tout autre nom représentatif de votre bot.
- <span style="white-space:pre-wrap;">Cliquez sur </span>****"Create"****<span style="white-space:pre-wrap;"> pour valider la création.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/4Xximage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/4Xximage.png)

##### 4. Ajouter les informations générales

Après avoir créé l’application, vous serez redirigé vers la page de gestion de votre bot.

- ****Logo****<span style="white-space:pre-wrap;"> : une image pour représenter votre bot (par exemple, un avatar lié au thème de votre serveur).</span>
- ****Nom****<span style="white-space:pre-wrap;"> : vérifiez ou modifiez le nom de votre bot.</span>
- ****Description****<span style="white-space:pre-wrap;"> : ajoutez une description facultative pour expliquer à quoi sert le bot ou pour donner des détails sur son rôle.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/dIrimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/dIrimage.png)

---

### Étape 2 : inviter le bot sur votre Discord

Bien que cette étape soit réalisée assez tôt dans le processus, elle nous permettra de finaliser rapidement l'installation et de passer à la suite sans complication. Pas de panique, cette configuration initiale ne nécessite pas de permissions avancées pour le bot, sauf celle d'envoyer des messages aux utilisateurs.

****Instructions pour installer le bot :****

- ****Aller dans la partie "Installation"****
    - <span style="white-space:pre-wrap;">Dans le </span>[Discord Developer Portal](https://discord.com/developers/applications), accédez à l’application que vous venez de créer.
    - <span style="white-space:pre-wrap;">Dans le menu latéral, cliquez sur l'onglet </span>****Installation****.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/hivimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/hivimage.png)

- ****Définir les paramètres****
    - Définissez les paramètres comme sur l'image ci-dessous

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/bcAimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/bcAimage.png)

- ****Inviter le bot sur votre serveur****
    - <span style="white-space:pre-wrap;">Copiez le lien d'invitation généré pour le bot dans la partie </span>****Installation****.
    - Collez ce lien dans votre navigateur pour inviter le bot sur le serveur Discord de votre choix.
    - <span style="white-space:pre-wrap;">Sélectionnez le serveur cible, puis cliquez sur </span>****Autoriser****.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/tvyimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/tvyimage.png)

---

### Étape 3 : Configuration du OAuth2

Cette étape est essentielle pour permettre l’authentification des utilisateurs pour les services Xelyos. Nous allons configurer les informations nécessaires pour que le bot puisse interagir correctement avec le site web.

##### 1. Récupérer les informations de Client ID et Client Secret

- ****Accéder aux informations OAuth2****
    - <span style="white-space:pre-wrap;">Depuis le </span>[Discord Developer Portal](https://discord.com/developers/applications), sélectionnez l’application que vous avez créée.
    - <span style="white-space:pre-wrap;">Cliquez sur l’onglet </span>****OAuth2****<span style="white-space:pre-wrap;"> dans le menu latéral.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/w6limage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/w6limage.png)

- ****Récupérer le Client ID****
    - <span style="white-space:pre-wrap;">Dans la section </span>****General Information****<span style="white-space:pre-wrap;">, localisez le champ </span>****Client ID****.
    - <span style="white-space:pre-wrap;">Cliquez sur le bouton </span>****Copy****<span style="white-space:pre-wrap;"> à côté pour copier l’identifiant unique de votre application.</span>
- ****Générer et récupérer le Client Secret****
    - <span style="white-space:pre-wrap;">Toujours dans la section </span>****General Information****<span style="white-space:pre-wrap;">, localisez le champ </span>****Client Secret****.
    - <span style="white-space:pre-wrap;">Cliquez sur </span>****Reset Secret****<span style="white-space:pre-wrap;"> pour générer un nouveau secret.</span>
    - <span style="white-space:pre-wrap;">Une fois généré, copiez le </span>****Client Secret****<span style="white-space:pre-wrap;"> affiché.</span>
- ****Intégrer les informations dans le formulaire****
    - <span style="white-space:pre-wrap;">Les valeurs </span>****Client ID****<span style="white-space:pre-wrap;"> et </span>****Client Secret****<span style="white-space:pre-wrap;"> sont indispensables pour configurer correctement le bot.</span>
    - <span style="white-space:pre-wrap;">Intégrez-les dans le </span>****GForm****<span style="white-space:pre-wrap;"> qui vous a été envoyé.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/SeWimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/SeWimage.png)

- <span style="white-space:pre-wrap;">Collez le </span>****Client ID****<span style="white-space:pre-wrap;"> et le </span>****Client Secret****<span style="white-space:pre-wrap;"> dans les champs correspondants du formulaire.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/W91image.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/W91image.png)

##### 2. Configuration de l'URL de redirection

Pour finaliser la configuration du OAuth2, nous devons définir une URL de redirection. Cette URL est utilisée pour vérifier et traiter les informations des utilisateurs après leur authentification via Discord.

- ****Accéder aux paramètres de redirection****
    - <span style="white-space:pre-wrap;">Toujours dans la section </span>****OAuth2****<span style="white-space:pre-wrap;"> du </span>[Discord Developer Portal](https://discord.com/developers/applications)<span style="white-space:pre-wrap;">, localisez la section </span>****Redirects****<span style="white-space:pre-wrap;"> ou </span>****URL de redirection****.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/4ZHimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/4ZHimage.png)

- ****Composer l'URL de redirection****
    - Prenez le nom de domaine associé à votre solution.
    - <span style="white-space:pre-wrap;">Ajoutez le préfixe </span>`<span class="editor-theme-code">https://</span>`<span style="white-space:pre-wrap;"> devant ce nom de domaine.</span>
    - <span style="white-space:pre-wrap;">Ajoutez ensuite </span>`<span class="editor-theme-code">/connect-discord/check</span>`<span style="white-space:pre-wrap;"> à la fin de l’URL.</span>
    
    ****Exemple :****  
    <span style="white-space:pre-wrap;">Si votre domaine est </span>`<span class="editor-theme-code">darkchatrp.xelyos.fr</span>`, votre URL de redirection sera :

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-05/scaled-1680-/kD2image.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-05/kD2image.png)

---

### Étape 4 : Configuration des paramètres du bot

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/siDimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/siDimage.png)

##### 1. Définir le nom, l'avatar et la bannière du bot

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/q5Eimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/q5Eimage.png)

##### 2. Récupérer le token du bot

- ****Token :**** dans l’onglet Bot, copiez le token de votre bot.
- ****Intégration :**** collez ce token dans le GForm que nous vous avons envoyé.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/DCBimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/DCBimage.png)

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/KdAimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/KdAimage.png)

<p class="callout warning">****Attention :****<span style="white-space:pre-wrap;"> Le token est confidentiel, ne le partagez pas ailleurs !</span></p>

---

### Étape 5 : Mon bot reste chez moi

Cette étape permet de faire en sorte que votre bot ne soit pas public et ne puisse être disponible que sur votre serveur Discord.

##### 1. Modifier le lien d'installation

- <span style="white-space:pre-wrap;">Allez dans l’onglet </span>****Installation****<span style="white-space:pre-wrap;"> du </span>[Discord Developer Portal](https://discord.com/developers/applications).
- <span style="white-space:pre-wrap;">Dans la section </span>****Install Link****<span style="white-space:pre-wrap;">, définissez </span>****none****<span style="white-space:pre-wrap;"> pour empêcher le bot d'être ajouté à d'autres serveurs.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/53kimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/53kimage.png)

##### 2. Désactiver l'option Public Bot

- <span style="white-space:pre-wrap;">Ensuite, allez dans l’onglet </span>****Bot****.
- <span style="white-space:pre-wrap;">Décochez l'option </span>****Public Bot****.
- Cela empêchera votre bot d’être visible publiquement et donc ajouté à d’autres serveurs.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/GMOimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/GMOimage.png)

# English

# Creation and Configuration of the Discord Bot

<span style="white-space: pre-wrap;">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 </span>****Xelyos**** solutions.

<p class="callout warning">****Xelyos Liability:****<span style="white-space: pre-wrap;"> 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.</span></p>

<p class="callout info">****Bot Permissions:****<span style="white-space: pre-wrap;"> 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.</span></p>

<p class="callout info">****Creating a Dedicated Bot:****<span style="white-space: pre-wrap;"> 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.</span></p>

<u>We will cover the following steps:</u>

- <span style="white-space: pre-wrap;">Creating the bot via the </span>[Discord Developer Portal](https://discord.com/developers/applications).
- Configuring the necessary permissions and settings.
- Inviting the bot to your server!

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.

<span style="white-space: pre-wrap;">Let’s move on to the first step: </span><span style="color: rgb(186, 55, 42);">creating the Discord bot</span>.

---

### Step 1: Creating the Bot

##### 1. Access the Discord Developer Portal

<span style="white-space: pre-wrap;">Go to the official </span>[Discord Developer Portal](https://discord.com/developers/applications)<span style="white-space: pre-wrap;"> website. This is where you will manage your bot and its settings. Make sure you are logged in with your Discord account.</span>

##### 2. Create a New Application

Once on the portal:

- <span style="white-space: pre-wrap;">Click the </span>****"New Application"****<span style="white-space: pre-wrap;"> button at the top right of the screen.</span>
- A pop-up window will appear allowing you to name your application.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/r9zimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/r9zimage.png)

##### 3. Enter the Application Name

- <span style="white-space: pre-wrap;">Give your new application a name. It can be </span>****Dark Chat RP or XelNews****<span style="white-space: pre-wrap;"> or any other name that represents your bot.</span>
- <span style="white-space: pre-wrap;">Click </span>****"Create"****<span style="white-space: pre-wrap;"> to confirm the creation.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/4Xximage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/4Xximage.png)

##### 4. Add General Information

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

- ****Logo****: Upload an image to represent your bot (e.g., an avatar related to your server’s theme).
- ****Name****: Verify or modify the bot’s name.
- ****Description****: Add an optional description to explain what the bot does or provide details about its role.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/dIrimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/dIrimage.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:****

- ****Go to the "Installation" Section****
    - In the Discord Developer Portal, go to the application you just created.
    - <span style="white-space: pre-wrap;">In the sidebar, click on the </span>****Installation**** tab.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/lrBimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/lrBimage.png)

- ****Set the Parameters****
    - Set the parameters as shown in the image below.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/snGimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/snGimage.png)

- ****Invite the Bot to Your Server****
    - <span style="white-space: pre-wrap;">Copy the generated invite link for the bot from the </span>****Installation****<span style="white-space: pre-wrap;"> section.</span>
    - Paste this link into your browser to invite the bot to the Discord server of your choice.
    - <span style="white-space: pre-wrap;">Select the target server and click </span>****Authorize****.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/tvyimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/tvyimage.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

- ****Access the OAuth2 Information****
    - <span style="white-space: pre-wrap;">From the </span>[Discord Developer Portal](https://discord.com/developers/applications), select the application you have created.
    - <span style="white-space: pre-wrap;">Click on the </span>****OAuth2****<span style="white-space: pre-wrap;"> tab in the sidebar.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/knRimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/knRimage.png)

- ****Retrieve the Client ID****
    - <span style="white-space: pre-wrap;">In the </span>****General Information****<span style="white-space: pre-wrap;"> section, locate the </span>****Client ID****<span style="white-space: pre-wrap;"> field.</span>
    - <span style="white-space: pre-wrap;">Click the </span>****Copy****<span style="white-space: pre-wrap;"> button next to it to copy the unique identifier of your application.</span>
- ****Generate and Retrieve the Client Secret****
    - <span style="white-space: pre-wrap;">In the same </span>****General Information****<span style="white-space: pre-wrap;"> section, locate the </span>****Client Secret****<span style="white-space: pre-wrap;"> field.</span>
    - <span style="white-space: pre-wrap;">Click </span>****Reset Secret****<span style="white-space: pre-wrap;"> to generate a new secret.</span>
    - <span style="white-space: pre-wrap;">Once generated, copy the displayed </span>****Client Secret****.
- ****Integrate the Information into the Form****
    - <span style="white-space: pre-wrap;">The </span>****Client ID****<span style="white-space: pre-wrap;"> and </span>****Client Secret****<span style="white-space: pre-wrap;"> values are essential for correctly configuring the bot.</span>
    - <span style="white-space: pre-wrap;">Enter them into the </span>****GForm****<span style="white-space: pre-wrap;"> that was sent to you. </span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/poXimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/poXimage.png)

- - <span style="white-space: pre-wrap;"> Paste the </span>****Client ID****<span style="white-space: pre-wrap;"> and </span>****Client Secret****<span style="white-space: pre-wrap;"> into the corresponding fields in the form.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/Kgwimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/Kgwimage.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.

- ****Access the Redirect Settings****
    - <span style="white-space: pre-wrap;">Still in the </span>****OAuth2****<span style="white-space: pre-wrap;"> section of the Discord Developer Portal, locate the </span>****Redirects****<span style="white-space: pre-wrap;"> or </span>****Redirect URL****<span style="white-space: pre-wrap;"> section.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/qxaimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/qxaimage.png)

- ****Compose the Redirect URL****
    - <span style="white-space: pre-wrap;">Take the domain name associated with your </span>****Dark Chat RP****<span style="white-space: pre-wrap;"> system.</span>
    - <span style="white-space: pre-wrap;">Add the prefix </span>`<span class="editor-theme-code">http://</span>`<span style="white-space: pre-wrap;"> in front of the domain name.</span>
    - <span style="white-space: pre-wrap;">Then add </span>`<span class="editor-theme-code">/connect-discord/check</span>`<span style="white-space: pre-wrap;"> at the end of the URL.</span>

****Example:****

<span style="white-space: pre-wrap;">If your domain is </span>`<span class="editor-theme-code">darkchatrp.xelyos.fr</span>`, your redirect URL will be:

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/1ezimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/1ezimage.png)

---

### Step 4: Configuring the Bot Settings

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

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/Juzimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/Juzimage.png)

##### 2. Retrieve the Bot Token

- ****Token****<span style="white-space: pre-wrap;">: In the </span>****Bot****<span style="white-space: pre-wrap;"> tab, copy the token of your bot.</span>
- ****Integration****<span style="white-space: pre-wrap;">: Paste this token into the </span>****GForm****<span style="white-space: pre-wrap;"> that was sent to you.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/R7Rimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/R7Rimage.png)

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/h03image.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/h03image.png)

<p class="callout warning">****Warning:****<span style="white-space: pre-wrap;"> The token is confidential, do not share it anywhere else!</span></p>

---

### 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

- <span style="white-space: pre-wrap;">Go to the </span>****Installation****<span style="white-space: pre-wrap;"> tab in the Discord Developer Portal.</span>
- <span style="white-space: pre-wrap;">In the </span>****Install Link****<span style="white-space: pre-wrap;"> section, set it to </span>****none****<span style="white-space: pre-wrap;"> to prevent the bot from being added to other servers.</span>

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/485image.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/485image.png)

##### 2. Disable the Public Bot Option

- <span style="white-space: pre-wrap;">Next, go to the </span>****Bot****<span style="white-space: pre-wrap;"> tab.</span>
- <span style="white-space: pre-wrap;">Uncheck the </span>****Public Bot****<span style="white-space: pre-wrap;"> option.</span>
- This will prevent your bot from being publicly visible and thus added to other servers.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/H4vimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/H4vimage.png)