From 8515e9c4a386d9300309aff8d1891eadfe2ee100 Mon Sep 17 00:00:00 2001 From: hornet Date: Fri, 27 Dec 2024 21:51:18 +0500 Subject: [PATCH] updoot readme v1.2 --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ea00a6..60621e6 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,12 @@ Current version: v1.2 Prosody PostgreSQL Tailscale + nginx Check disk usage Ping a Tailscale IP for connectivity verification - Accessible via Telegram commands such as /status, /ping, and /help + Restart critical services + Reboot the host + Accessible via Telegram commands ### Prerequisites: @@ -29,13 +32,20 @@ Clone the repository: git clone https://git.lainlounge.xyz/hornet/lainmonitor.git cd lainmonitor +RECOMMENDED: Create a virtual environment for python with: +``` +python3 -m venv venv +source venv/bin/activate +``` Install dependencies: - pip3 install pyTelegramBotAPI +``` + pip3 install -r requirements.txt +``` -Configure your bot token: Open the lainmonitor.py file and replace the placeholder with your Telegram bot token: +Configure your bot token: Open the .env file and replace the placeholder with your Telegram bot token. - TOKEN = 'YOUR_BOT_TOKEN' +Configure authorized users: Open the .authorized_users file and replace the placeholders with Telegram user ID(s). Set up service access: Ensure the bot can check system services by running it with sudo or appropriate permissions.