Skip to content

A simple yet modern Discord bot that allows you to bridge between Hypixel guild chat and Discord chat.

License

Notifications You must be signed in to change notification settings

xMdb/hypixel-guild-chat-bot

Repository files navigation


Hypixel Guild Chat Bot

Hypixel Guild Chat Bot

A Discord bot used to bridge between Hypixel guild chat to Discord and vice versa.
Open source, with love from xMdb 🤍

License Lines of Code Stars

Report a bug · Request a feature · Get in touch

⚠️ This application will login to Hypixel using Mineflayer which is not a normal Minecraft client, this could result in your Minecraft account getting banned from Hypixel, so use this application at your own risk. I am not liable for any damages and no warranty is provided as outlined in GPL-3.0 License.

❌ Deprecation Notice!

Please note that this application will not receive any more updates. This is because of my current real life commitments. I have no time to develop anything. A suitable fork that is available for use is MiscGuild/Jejebecarte's bridge bot here: https://github.com/MiscGuild/bridge

MiscGuild's version is a rewrite of this bot in TypeScript. As a result, it is far superior. Please use it.

About Hychat: it was abandonded because of the reasons above. Its replacement is also MiscGuild.

:)

Features

Hypixel Guild Chat Bot Discord Example
  • Bridges a Discord channel to Hypixel guild chat.
  • Sends all guild related messages to the Discord channel (when I mean all, I mean all).
  • Logs guild joins and leaves through a webhook (/g leave, /g join).
  • Automatic restart and reconnections, making for zero down-time.
  • Contains commands that can be used to control the bot's state, such as powering on and off, and sending chat messages through Discord (bot owner only).
  • Slowmode and "say" commands (send messages as the Discord bot) for trusted users.
  • Log slowmode and "say" command usage through an additional logging webhook.

How Does It Work?

The bot is a self-hosted application that runs both a Discord bot and a Minecraft bot, which interconnect with each other. This is done using Discord.js and Mineflayer, two awesome Node.js libraries.

Who's it for?

This application is for people who are into self-hosting their own applications on server infrastructures or on their own PC. If you don't know how to, don't worry! In the new version, you will be able to host your own fully-featured guild chat bot in just a couple of clicks! Updates will be provided on the Hychat Twitter.

Installation

Prerequisites

  • Git.
  • NodeJS.
  • A full access premium Minecraft account that you can use to connect to Hypixel.

Initial Setup

  1. ⭐ Star this repo!
  2. Clone the repo into your own directory.
$ git clone https://github.com/xMdb/hypixel-guild-chat-bot.git
  1. Enter the new directory and install the NPM packages.
$ cd hypixel-guild-chat-bot
$ npm install
  1. Make a new Discord bot account on the Discord Developer Portal and get the bot token.
  2. Grant the Message Intent for the bot.
  3. Generate an OAuth2 URL by going to OAuth2 on the left side of the application dashboard and clicking the URL generator. Add the bot and application.commands scopes and open the link to invite it.
  4. Re-name the .env.example file to .env and edit the values as instructed.
  5. Edit the config.js file to your liking. Ensure you have valid IDs and such otherwise the bot will not work.
  6. Test the bot.
$ node app.js

If the bot logs into Hypixel, and you can send and receive messages through Discord, proceed to the next steps!

Running in the Background

  1. Install PM2 using npm.
$ npm install -g pm2
  1. Use the npm start script to start with PM2.
$ npm start
  1. Verify that everything works as expected.

Refer to the PM2 documentation for more information about PM2.

Acknowledgements

Parts of this project are forked from:

mew/discord-hypixel-bridge under GPL-3.0 License.

Myzumi/Guild-Bot under Apache-2.0 License.

License

Hypixel Guild Chat Bot is open-sourced software licensed under the GPL-3.0 License.