Giter VIP home page Giter VIP logo

hetznerbot's Introduction

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 [email protected]: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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.