As the TLDR says above, this bot provides player notifications via Discord DMs. This is only available to self host, due to the nature of the bot maxing out a Hypixel API key. The bot is currently capable of tracking 32 players at a time, with 25 players allowed to be online at a time. The bot does save it's data around every 10 minutes, as well as every time the stop command is used by the owner. You can change these numbers inside of the bot if you would like, but you will need to stay under the Hypixel and Mojang API limits. Per user notification limit is set to 10, unless they are set up as owner. This is again easily changable by editing code. If you edit any code, you must make sure you are following the terms of the license for this project (GNU AFFERO v3). Instructions for how to do this are at the top of hycord.py
- Make a folder for the repository.
- For all installation methods you will need the ".env" file in the root of the repository. For Docker installation, that can be downloaded here. You can get this while cloning the repository with the manual method.
- Edit the values in the ".env" file. You can do this by editing the values after the equals sign. Information on each value can be found below.
You must put a Discord bot token here. Google "Discord bot key tutorial" for info on how to get this token.
Default = "," Swap out the comma with something else if you want a different prefix.
Required for owner features (bypass max user limit, and be able to stop bot). Leave empty if you don't want these features. Look up "how to get Discord user id" for info on how to get this.
Set to "on" if you want the notification service enabled (player notifs in dms), set to "off" if you want the notification service to be disabled.
Required for notification service. Look up "How to get hypixel api key" for info on how to get this. Minecraft account is required.
This is the reccomended method of installation. You must install docker, but docker-compose isn't required.
In the folder with your ".env" file, run the command docker run -d -v hycordjson:/app/data --env-file ./.env --restart always professorpiggos/hycord:latest
. That's all that you have to do. Releases are made added on all sizeable feature updates, minor fixes aren't published. You can also run the update.sh update script if you would like to update the bot without running a lot of docker commands. Run it with parameter of your container name.
You can also build your own image using the Dockerfile in the repository, or download an image from GitHub Packages. The packages on Github Packages are beta builds. They may have more features, but may also be buggier. If you build directly from the development branch (this would be similar to an "alpha"), there is a chance that the code just flat-out won't work, as there is no QC on this branch.
This isn't recommended as you won't get automatic updates on restart, but you can do it.
- Run the command
git clone https://github.com/ProfessorPiggos/HyCord/
. - Run the command
pip install -r requirements.txt
. - Run
python ./app/hycord.py
. If running on a server, run this inside of ascreen
instance.
Programmed in Python 3.8.5. You must have at least version 3.8 or higher, this is a dependency of the nextcord library.
(obviously)
Needed for acquiring Hypixel API Key
Only if you are using the docker installation method.