Installation

The Account Link Verification resource is currently unpublished on BuiltByBit and will be migrated into the Main Cosmo Resource soon. These docs are still here as a reference until that happens

Prerequisites

  • A server that you can deploy the standalone Discord Bot on.

  • A Minecraft Server using a Pterodactyl panel. (Required as this bot uses the Pterodactyl API to access linked accounts).

  • A Cosmo License and the API Addon.

  1. Create a new application. Set the username and, optionally, the profile picture.

  2. On the left menu, click Bot.

  3. Click "Create a Bot" and set its username and, optionally, the profile picture (if the bot has not been created automatically already).

  4. Untick "Public Bot" so other people can't just invite your bot onto their server.

  5. Enable all the intents. You may have to scroll down to find these.

  6. Click Copy Token. Keep this safe, ready to paste into the Minecraft config file.

  7. Go to OAuth, then URL generator. For scope, select "bot" and "application.commands". For permission, tick Administrator.

  8. Go to the generated link and follow the instructions to add the bot to the server of your choice.

Minecraft server set up:

  1. Add the EssentialsX, EssentialsX Discord & EssentialsX Discord Link plugins to your server and restart. Download Links: https://essentialsx.net/downloads.html

  2. Edit the /plugins/EssentialsDiscordLink/config.yml file and put in your bot token that you copied.

  3. Restart your server again.

Cosmo Linking Discord Bot set up:

  1. Create a new application. Set the username and, optionally, the profile picture.

  2. On the left menu, click Bot.

  3. Click "Create a Bot" and set its username and, optionally, the profile picture (if the bot has not been created automatically already).

  4. Untick "Public Bot" so other people can't just invite your bot onto their server.

  5. Enable the "Message Content" & "Server Members" intent. You may have to scroll down to find these.

  6. Click Copy Token. Keep this safe, ready to paste into the settings.yml file.

  7. Go to OAuth, then URL generator. For scope, select "bot" and "application.commands". For permission, tick either Administrator or all the permissions the bot needs (view channel, send messages, embed links, use external emojis...).

  8. Go to the generated link and follow the instructions to add the bot to the server of your choice.

Deploying the bot:

  • Copy the bot files into your hosting. You CAN use Pterodactyl to host this bot.

  • Edit the settings.yml file with your information, make sure to get your license key from the Support Server and fill in your Discord Bot token.

  • Install the dependencies with the command: python3.11 -3 -m pip install -U -r requirements.txt (The Python version may change depending on your version).

  • Start the bot with: python3.11 main.pyc (The Python version may change depending on your version).

  • Go to commands.yml in your main Cosmo Bot and disable the /link command, then restart the main Cosmo Bot. Users will need to use the link command from this bot.

Last updated