Skip to content

ServerManagerBot is a Telegram bot for managing Hetzner servers. It allows admins to control server actions.

License

Notifications You must be signed in to change notification settings

erfjab/ServerManagerBot

Repository files navigation

Important

We thank PingiHost for supporting and sponsoring this. project.

Setup

Server and Docker Setup

Show Server Commands

1. Update the Server

sudo apt update && sudo apt upgrade -y

2. Install Docker

curl -fsSL https://get.docker.com | sh

Install & Run the Bot

Show Run Commands

1. Create Directory and Download Files

mkdir -p /opt/erfjab/servermanagerbot/data
curl -o /opt/erfjab/servermanagerbot/docker-compose.yml https://raw.githubusercontent.com/erfjab/servermanagerbot/master/docker-compose.yml
cd /opt/erfjab/servermanagerbot
curl -o .env https://raw.githubusercontent.com/erfjab/servermanagerbot/master/.env.example

2. Config .env

nano .env

3. Pull Docker Image

docker compose pull

4. Start the Bot

docker compose up -d

After a few moments, the bot will start running.


Update the Bot

Show Update Commands

Make sure you're in the servermanagerbot directory:

cd /opt/erfjab/servermanagerbot

Then update the bot:

docker compose pull && docker compose up -d

Manage the Bot

Show Manage Commands

Make sure you're in the servermanagerbot directory:

cd /opt/erfjab/servermanagerbot
  • Restart the Bot:

    docker compose restart
  • Stop the Bot:

    docker compose down
  • View Logs:

    docker compose logs -f

Switch to GA Mode (preview mode)

Show GA Commands

Make sure you're in the HolderBot directory:

cd /opt/erfjab/servermanagerbot
  • Open the Docker Compose File:

    nano docker-compose.yml
  • Change the Image Tag:

    From:

    erfjab/servermanagerbot:latest

    To:

    erfjab/servermanagerbot:ga
  • Pull the Docker Image:

    docker compose pull
  • Start the Bot:

    docker compose up -d

Support

Star the Project:
Stargazers

About

ServerManagerBot is a Telegram bot for managing Hetzner servers. It allows admins to control server actions.

Resources

License

Stars

Watchers

Forks