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.
Minecraft Link Discord Bot set up:
Go to Discord's Developer Portal.
Create a new application. Set the username and, optionally, the profile picture.
On the left menu, click Bot.
Click "Create a Bot" and set its username and, optionally, the profile picture (if the bot has not been created automatically already).
Untick "Public Bot" so other people can't just invite your bot onto their server.
Enable all the intents. You may have to scroll down to find these.
Click Copy Token. Keep this safe, ready to paste into the Minecraft config file.
Go to OAuth, then URL generator. For scope, select "bot" and "application.commands". For permission, tick Administrator.
Go to the generated link and follow the instructions to add the bot to the server of your choice.
Minecraft server set up:
Add the EssentialsX, EssentialsX Discord & EssentialsX Discord Link plugins to your server and restart. Download Links: https://essentialsx.net/downloads.html
Edit the
/plugins/EssentialsDiscordLink/config.yml
file and put in your bot token that you copied.Restart your server again.
Cosmo Linking Discord Bot set up:
Go to Discord's Developer Portal.
Create a new application. Set the username and, optionally, the profile picture.
On the left menu, click Bot.
Click "Create a Bot" and set its username and, optionally, the profile picture (if the bot has not been created automatically already).
Untick "Public Bot" so other people can't just invite your bot onto their server.
Enable the "Message Content" & "Server Members" intent. You may have to scroll down to find these.
Click Copy Token. Keep this safe, ready to paste into the
settings.yml
file.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...).
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