A basic Mineflayer bot to connect to Hypixel and perform bot-like tasks for your guild such as stats checking, performing commands as an admin and allowing players on discord to communicate with players in-game and vice versa.
This bot is still in development.
- Copy the contents of
example.env
- Paste the contents into a file called
.env
- Fill out the
MINECRAFT_EMAIL
andBOT_PREFIX
- Authorise the bot to use your Minecraft account using the code generated
- Create a Discord Bot token. You can do this by going to this site and:
- Press "New Application"
- Name your application
- IN General Information, Choose a unique name
- Press "Bot"
- Press "Add Bot"
- Copy the Token into your
.env
file underDISCORD_TOKEN
- Disable "Public Bot"
- Enable the Message Contents Intent
- Press "OAuth2"
- Press "URL Generator"
- Under "Scopes", Enable
Bot
andapplications.commands
(REQUIRED for the bot to be able to add slash commands! ) - Under "Bot Permissions", Enable
Send Messages
andRead Message History
- Copy the Generated URL in to your Browser or Discord and invite the Bot
- In Discord, Enable "Developer mode"
- Right click the Server icon and click
Copy ID
and paste this in to theconfig.json5
file with the pathdiscord.id
- Create 2 channels, One for Guild members to use and one for Admins
- Right click each channel and click
Copy ID
and paste them in to theconfig.json5
file with the pathsdiscord.loggingChannel
anddiscord.adminChannel
- Make a new role ( or existing staff role ) for people who will have permission to Kick, Mute, Promote and Demote people. Copy the ID of this role and place it in to the
discord.permissions
array. - Start the bot in either development mode or production and ensure it has the message "Logging in to Discord"
The bot allows for the use of SOCKS5
proxies. You can buy them from any proxy seller and they should cost between 2-7$ a month for decent proxies. They don't need to be high quality, just have a decent bandwidth allowance each month,
You can enter the credentials into the .env
file and the bot will recognise them without you needing to do anything.