DEV Community

Cover image for A bot to periodically get updates of Hetzner Cloud machines.
Raphael Bernhart
Raphael Bernhart

Posted on

A bot to periodically get updates of Hetzner Cloud machines.

You ever wanted to get periodically updates of your hetzner cloud machines to your personal discord server via the hetzner api? No? Really?
Ok anyways here you have excactly that.

Sometimes it is really hard to easily monitor your cloud machines with small money. There are apps out there like UptimeRobot (which btw is really nice to work with) but if you want to get metrics, fast status updates to react instantly on the error or personalization you have to pay or build something yourself.
This is were the healthznerbot is coming in handy. It is set up fast and customizable. It even has a custom meme-mode for a little fun everytime the status update is a success.

If you just want to get fast metrics of the servers you have at the hetzner cloud just type in !servers in on a from you selected discord channel.

68747470733a2f2f6173736574732e7261706861656c6265726e686172742e61742f696d616765732f6865616c74687a6e6572626f742f6865616c74687a6e6572626f742d75692e706e67

Installation

  1. Copy the project to your local machine git clone https://github.com/raphaelbernhart/healthznerbot.git
  2. Change directory to Healthznerbot cd healthznerbot
  3. Rename the .env.example to .env and configure it with your credentials and wishes
  4. Run the command npm i to install the dependencies
  5. Run npm run build to build the bot
  6. Change directory to dist cd ./dist
  7. And finally run npm run start to run the bot

Github

Top comments (0)