Code Monkey home page Code Monkey logo

tg-proxmox-bot's Introduction

This tool is for managing Proxmox virtual machines in Telegram.

Bot features:

  • Turning virtual machines on and off
  • Obtaining the status of virtual machines
  • Convenient control anywhere in the world

Example of a bot workin:

demo

How to start a bot:

The bot requires Python 3 and python3-pip to operate. Install them if they are not already installed.

Install dependencies: pip install -r requirements.txt.

After installing the dependencies, configure the bot, open proxmox-tg-bot.py and adjust the settings.

Requires a user with rights to disable and enable VMs (VM.PowerMgmt, VM.Audit)

Run the bot by running and copy python3 proxmox-tg-bot.py in the terminal.

Setting autostart in Linux

  1. Copy the service file:

    cp /location-services-file/telegram-proxmox-bot/proxox-tg-bot.service /etc/systemd/system/proxox-tg-bot.service
    

    Replace the path in proxox-tg-bot.service with the desired file location.

  2. Start bot:

    systemctl start proxox-tg-bot.service
    

    To check the operation, execute the command:

    systemctl status proxox-tg-bot.service
    
  3. To perform autoloading, do:

    systemctl enable proxox-tg-bot.service
    

tg-proxmox-bot's People

Contributors

ftt221 avatar drdirect avatar

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.