From b09798cadaee12f6a53f227366a9918d36fa7ad6 Mon Sep 17 00:00:00 2001 From: hornet Date: Fri, 27 Dec 2024 21:46:34 +0500 Subject: [PATCH] updoot readme and version labels in the main file --- README.md | 5 ++++- lainmonitor.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 77fbd1d..7ea00a6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # lainmonitor LainMonitor is a Telegram bot designed to monitor your system, providing real-time updates on the system’s status, essential services, and disk usage. It can also verify connectivity to a specific Tailscale IP address. +Current version: v1.2 + ### Key Features: Retrieve system information: @@ -76,7 +78,8 @@ Enable and start the service: /help — Display a list of available commands. /status — Retrieve system hostname, uptime, and status of monitored services. /ping — Ping a Tailscale IP and return connectivity status. - /reboot — (Work in progress) Placeholder for a system reboot command. + /restart hostname- Restart a specific service on a specified machine. + /reboot hostname — Placeholder for a system reboot command. ### Contributions: diff --git a/lainmonitor.py b/lainmonitor.py index 8b8fc1b..35dd218 100644 --- a/lainmonitor.py +++ b/lainmonitor.py @@ -4,7 +4,7 @@ # usage: python3 lainmonitor.py | or run it as a service # author: hornetmaidan # contributors: h@x -# version: 1.1.6 +# version: 1.2 import os import subprocess import threading @@ -161,7 +161,7 @@ def handle(message): bot.reply_to(message, 'You are not authorized for this action') else: if message.text == '/start': - bot.reply_to(message, 'lainmonitor v1.0 --- standing by...') + bot.reply_to(message, 'lainmonitor v1.2 --- standing by...') elif message.text == '/help': bot.reply_to(message, 'commands: /start, /help, /status, /restart, /reboot, /ping') bot.reply_to(message, 'commands: /start, /help, /status, /restart, /reboot, /ping')