A bot used to Bridge between Discord and Hypixel guild chats.
Warning
This application will log into Minecraft using Mineflayer, a JavaScript API for Minecraft. This may be against the rules of some servers and could result in punishment. All contributors to this repository are not liable for damages, and no warranty is provided under the MIT License.
Note
This application will no longer receive updates that contain new features or QOL improvements. Updates, where necessary, will only contain patches for security vulnerabilities and bugs.
- Bridges between Discord and Hypixel guild chats.
- Sends all guild related messages, including chat, guild announcements and more to Discord.
- Automatic restarts and reconnections.
- Privileged slash commands to control bot behaviour in-game.
- Toggleable slowmode to control member usage.
- Basic filtering of extreme profanity to protect bot accounts from abuse.
- Configurable in-game reminders to spread the word about news and upcoming events.
- Install pnpm via one of their installation methods, or the following command:
$ npm install -g pnpm
- Clone the repository into a directory of your choice.
$ git clone https://github.com/MiscGuild/bridge.git
- Enter the new directory and install packages.
$ cd bridge
$ pnpm install
-
Make a new Discord bot account on the Discord Developer Portal and retrieve the bot token.
-
Under the
Bot
tab, grant the bot theMessage Content
Intent. -
Generate an invite URL by going to the OAuth2 tab and clicking on the URL Generator. Add the
bot
andapplication.commands
scopes, before opening the link to invite the bot to your server. -
Setup the project config files.
$ pnpm run setup-files
-
Fill out the
.env
file with your credentials. -
Promote the Minecraft account used by the bot to Officer in-game in order for it to view the Officer chat and run privileged commands.
-
On Hypixel, set the account's
Private Message Privacy
setting underMy Profile > Social Settings
toLow
orHigh
, allowing guild members to privately message the bot to see their weekly guild experience total. -
Build and run the bot.
$ pnpm run build
$ pnpm start
After the June 2023 Hypixel Public API update, Development API Keys now expire after three days but can be easily renewed.
To acquire a permanent key, first generate a Development Key here. Then, fill out the form under Apps > Create app > Personal API Key
. Please note that applications concerning bridge bots may be denied.
Alternatively, you may omit the HYPIXEL_API_KEY
field of the .env
file, but some features such as minimum network level enforcement will be disabled.
If you are self-hosting or your process manager does not automatically restart the bot in the event of a crash, you may use PM2, a process manager for Node.js applications.
Use the pm2:start
script instead of the start
script to launch the bot. To stop the process, use the pm2:kill
script.
$ pnpm run pm2:start
$ pnpm run pm2:kill
Please refer to the PM2 documentation for more configuration options and information about PM2.
Pull requests are welcome. If you would like to chat with other developers please join our Discord.
Before submitting your changes for review, please ensure:
- the application is fully functional
- your code has been thoroughly tested
- your commit messages adhere to the Conventional Commits specification.
Give this repository a ⭐ if it helped you!
To raise an issue or bug report, please contact a developer or open an issue.
Parts of this project use code from the following repositories:
- Hychat Self-Host under the MIT License.
- Hypixel API TypeScript under the MIT License.
This is an open-source project licensed under the MIT License.