Skip to content

📲 Get the newest hetzner server offers right to your telegram chat.

License

Notifications You must be signed in to change notification settings

Nukesor/hetznerbot

Repository files navigation

Hetzner-Bot

MIT Licence

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

Installation and run

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
  1. Clone the repository:

    git clone git@github.com:nukesor/hetznerbot && cd hetznerbot
  2. Run just setup to install dependencies

  3. Run just initdb to initialize the database

  4. Start the bot once with just run to create the default config at ~/.config/hetznerbot.toml

  5. Adjust the config file

  6. Import the cpu data into your database with just import_cpu_data.

  7. Start the bot with just run

CPU data

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.

Bot Commands

start - Start the bot
stop - Stop the bot
get - Get the newest Offers
info - Show the current search attributes
help - Show the help text

About

📲 Get the newest hetzner server offers right to your telegram chat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published