A handy telegram bot which texts you as soon as there is a viable offer available on the hetzner server market. It is possible to set several search parameter which need to be satisfied for an offer to be sent to you.
If the price of an offer is reduced you will get a new notification with the updated price.
Available commands:
/start Start the bot
/stop Stop the bot
/set Set search attributes with this syntax: "\set hdd_count 3"
Attributes are:
- `hdd_count` int (min number of hard drives)
- `hdd_size` int (min amount of GB for each disk)
- `raid` enum ('raid5', 'raid6', 'None')
- `after_raid` int (min size of raid after assembly in TB)
- `threads` int (min number of cpu threads)
- `release_date` int (earliest cpu release year)
- `multi_rating` int (min passmark multithread rating)
- `single_rating` int (min passmark singlethread rating)
- `ram` int (min RAM size in GB)
- `price` int (max Price in Euro)
- `ecc` bool (0 or 1)
- `inic` bool (0 or 1)
- `hwr` bool (0 or 1)
/get Check hetzner now!
/info Show the current search attributes.
/help Show this text
This bot is developed for Linux.
Windows isn't tested, but it shouldn't be too hard to make it compatible. Feel free to create a PR.
Dependencies:
poetry
to manage and install dependencies.- Just for convience.
- Hetznerbot uses postgres by default
-
Clone the repository:
git clone git@github.com:nukesor/hetznerbot && cd hetznerbot
-
Run
just setup
to install dependencies -
Run
just initdb
to initialize the database -
Start the bot once with
just run
to create the default config at~/.config/hetznerbot.toml
-
Adjust the config file
-
Import the cpu data into your database with
just import_cpu_data
. -
Start the bot with
just run
The CPU data is read from data/cpu_data.csv
.
If you want to help out and add missing CPUs, please go to https://www.cpubenchmark.net/, gather the relevant information and add it to the csv file.
start - Start the bot
stop - Stop the bot
get - Get the newest Offers
info - Show the current search attributes
help - Show the help text