This Discord bot lets users receive notifications when servers matching their specific requirements appear in the Hetzner server auction.

hetzner to store user configurations..env file with all the necessary variables (see settings.py).bash
git clone https://github.com/Quintenvw/hetzner-auction-discord-bot.git
cd hetzner-auction-discord-bot
bash
pip install -r requirements.txt
Create a .env file in the root directory and add the following variables:
env
BOT_TOKEN=your_discord_bot_token
MONGODB_URI=your_mongodb_connection_string
HETZNER_NOTIFICATIONS_CHANNEL_ID=your_discord_channel_id_for_notifications
You can get a Discord bot token from the [Discord developer portal](https://discord.com/developers/applications).
bash
python bot.py
The bot uses slash commands. Use /hetzner to save a config and get a notification once it becomes available.
The bot periodically fetches server auction data from the Hetzner API. It then compares this data against the configurations saved by users in the MongoDB database. If a matching server is found, a notification is sent to the configured Discord channel, mentioning the user who set up the alert.
Configurations are automatically deleted after a notification is sent or if no server has been found within 90 days.
Contributions are welcome! Please feel free to submit a pull request.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
$ claude mcp add hetzner-auction-discord-bot \
-- python -m otcore.mcp_server <graph>