updoot readme v1.2
This commit is contained in:
parent
b09798cada
commit
8515e9c4a3
1 changed files with 14 additions and 4 deletions
18
README.md
18
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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue