This Discord bot is integrated with Mineflayer to interact with a Minecraft server.
- Python (3.6 or higher)
- Discord.py library
- Mineflayer and Pathfinder plugins
- Other dependencies mentioned in the script
-
Open a terminal or command prompt.
-
Clone the repository using the following command:
git clone https://github.com/your-username/your-repository.git
-
Change into the project directory:
cd your-repository
-
Open the
main.py
file using a text editor of your choice. -
Find the following section in the code:
# Replace with your actual bot token dcbot.run("YOUR_BOT_TOKEN")
-
Replace
"YOUR_BOT_TOKEN"
with the actual token for your Discord bot. You can obtain this token from the Discord Developer Portal. -
Update other login settings, such as server IP, username, password, and version in the Mineflayer configuration section.
-
Make sure you have Python installed on your system.
-
Install the required Python packages using the following command:
pip install -r requirements.txt
-
Ensure the Mineflayer server is running and accessible.
-
Run the bot using the following command:
python main.py
-
The bot should now connect to the Discord server and the Mineflayer server.
-
This bot uses Discord.py and Mineflayer libraries. Ensure that the versions are compatible.
-
Customize other settings and functionalities based on your requirements.
Feel free to contribute or report issues in the GitHub repository.