Installation#
A complete guide for both beginners and experienced users to instal and setup MineBot.
1. Install Python#
- Download the Installer: Go to the official Python website and download the latest Python installer for Windows.
- Run the Installer: Open the downloaded file and run the installer.
- Add Python to PATH: Ensure you check the box that says "Add Python to PATH" before clicking "Install Now".
- Verify Installation: Open Command Prompt and type
python3 --version
to verify the installation.
- Download the Installer: Visit the official Python website and download the latest Python installer for macOS.
- Run the Installer: Open the downloaded
.pkg
file and follow the installation instructions. - Verify Installation: Open Terminal and type
python3 --version
to verify the installation.
- Update Package List:
sudo apt update
- Install Python:
sudo apt install python3
- Verify Installation:
python3 --version
- Update Package List:
sudo dnf update
- Install Python:
sudo dnf install python3
- Verify Installation:
python3 --version
- Update Package List:
sudo pacman -Syu
- Install Python:
sudo pacman -S python
- Verify Installation:
python3 --version
- Install Python:
nix-env -iA nixpkgs.python3
- Verify Installation:
python3 --version
- Update Package List:
sudo zypper refresh
- Install Python:
sudo zypper install python3
- Verify Installation:
python3 --version
- Update Package List:
sudo apk update
- Install Python:
sudo apk add python3
- Verify Installation:
python3 --version
- Update Package List:
sudo xbps-install -Syu
- Install Python:
sudo xbps-install -S python3
- Verify Installation:
python3 --version
- Update Package List:
sudo emerge --sync
- Install Python:
sudo emerge dev-lang/python
- Verify Installation:
python3 --version
2. Download And Extract Bot#
- Download the Files: Download the bot files from BuiltByBit.
- Extract the Files: Right-click the downloaded ZIP file and select "Extract All...".
- Choose Destination: Select the destination folder and click "Extract".
- Download the Files: Download the bot files from BuiltByBit.
- Extract the Files: Double-click the downloaded ZIP file to extract it.
- Move Files: Move the extracted files to your desired location.
- Download the Files: Download the bot files from BuiltByBit.
- Extract the Files: Open Terminal and navigate to the directory containing the downloaded ZIP file.
- Run Extraction Command: Use the command
unzip <filename>.zip
to extract the files. - Move Files: Move the extracted files to your desired location.
3. Create A Discord Bot And Link Bot Token#
Create a new bot on Discord's developer portal using the instructions below.
Warning
- Before proceeding, enable Discord Developer Mode by navigating to
Settings -> Advanced -> Developer Mode
. - Click the images below to zoom them.
Danger
Anyone with access to this token has full access to your bot's account, you should ensure that nobody has access to this token but you. Treat it like a username/password combination, but for bots.
-
1. Create A New Application
-
2. Copy Application Id
In the General Information tab, copy the application ID for the next step. -
3. Invite Bot To Your Server
Visit this website, ensure "Administrator" and "Use Application Commands" are checked and paste your Client ID from step 2 into "Client ID". Do not change any other options. Then click the "Link".
Invite the bot to your server and in the final screen, check all boxes to grant all of the permissions we've selected previously. -
4. Move Role To Top And Give Administrator Permissions
Drag the "bot" role to the top (it can be below other administrator roles) and ensure it's got the Administrator permission. -
5. Navigate To The Bot Tab
-
6. Create A New Token
-
7. Paste Your Token To configuration/settings.yml
-
8. Give Bot Privileged Intents
-
9. Copy Your Guilt Id
Copy the Discord server id (guild id) that you plan to use with MineBot. -
10. Paste Your Guild Id To configuration/settings.yml
Paste the Discord server guild ID that you copied in the same config file where you set the bot token in step 8. -
11. Done!
You're done! All other settings are optional. However, we highly recommend linking it with your Minecraft server to get the most functionality out of it in the "server" section of the same file from step 8 and 10.
4. Start The Bot#
Warning
You need to re-run steps 1, 3 and 4 from below each time you reboot your machine or close the terminal/console window.
After extracting the bot files, follow these steps to set up a virtual environment and install the required dependencies:
- Navigate to the Extracted Folder: Open Terminal (or Command Prompt on Windows) and navigate to the folder where you extracted the bot files.
- Create a Virtual Environment:
-
Activate the Virtual Environment:
- Windows:
- macOS/Linux:
-
Start the bot:
Optional: Install nox
If you're getting "Unknown command: nox" error, you need to install nox first:
The bot will take some time to download its dependencies and should be up and running.
If you need help, open a ticket on GitHub and we will navigate you.