Welcome to the Python Bot for Managing Linux Servers project! This bot is designed to streamline and automate various tasks associated with managing Linux servers. Whether you're monitoring system resources, managing services and processes, or performing routine maintenance tasks, this bot has you covered.
- System Monitoring: Keep an eye on CPU usage, memory, and disk space.
- Power Management: Remotely power off or reboot your machine.
- Services and Process Management: Take control of your systemd services and processes with ease.
To get started with the Python Bot, follow these steps:
- Clone the repository:
git clone https://github.com/RageGen/linux-python-bot cd linux-python-bot
- Create a virtual environment::
python3 -m venv venv source venv/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Also configure the environment variables in /etc/environment:
TOKEN="your_token_bot" SUDO_PASSWORD="your_password"
- Update the array and enter your User id there, which you can get through other bots in Telegram or in any other way convenient for you.
allowed_user_ids = []
To start the bot, simply run:
python3 run.py
This project is licensed under the MIT License.