updoot readme and version labels in the main file

This commit is contained in:
hornet 2024-12-27 21:46:34 +05:00
parent e52703fe44
commit b09798cada
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,8 @@
# lainmonitor # lainmonitor
LainMonitor is a Telegram bot designed to monitor your system, providing real-time updates on the systems status, essential services, and disk usage. It can also verify connectivity to a specific Tailscale IP address. LainMonitor is a Telegram bot designed to monitor your system, providing real-time updates on the systems status, essential services, and disk usage. It can also verify connectivity to a specific Tailscale IP address.
Current version: v1.2
### Key Features: ### Key Features:
Retrieve system information: Retrieve system information:
@ -76,7 +78,8 @@ Enable and start the service:
/help — Display a list of available commands. /help — Display a list of available commands.
/status — Retrieve system hostname, uptime, and status of monitored services. /status — Retrieve system hostname, uptime, and status of monitored services.
/ping — Ping a Tailscale IP and return connectivity status. /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: ### Contributions:

View file

@ -4,7 +4,7 @@
# usage: python3 lainmonitor.py | or run it as a service # usage: python3 lainmonitor.py | or run it as a service
# author: hornetmaidan # author: hornetmaidan
# contributors: h@x # contributors: h@x
# version: 1.1.6 # version: 1.2
import os import os
import subprocess import subprocess
import threading import threading
@ -161,7 +161,7 @@ def handle(message):
bot.reply_to(message, 'You are not authorized for this action') bot.reply_to(message, 'You are not authorized for this action')
else: else:
if message.text == '/start': 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': 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')
bot.reply_to(message, 'commands: /start, /help, /status, /restart, /reboot, /ping') bot.reply_to(message, 'commands: /start, /help, /status, /restart, /reboot, /ping')