Compare commits

2 Commits

Author SHA1 Message Date
Lethary
624658e3af fix : variable environement 2026-03-05 11:44:03 +01:00
Lethary
0664831fe3 Stop tracking .env 2026-03-05 11:43:20 +01:00
4 changed files with 12 additions and 1 deletions

0
.env Normal file
View File

1
.env.exemple Normal file
View File

@@ -0,0 +1 @@
WEBHOOK_URL=""

9
.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
# Secrets / environment
.env
.env.*
!.env.example
!.env.exemple
# IDE / editor
.idea/
.vscode/

View File

@@ -1,6 +1,7 @@
#!/bin/bash
limit=1
WEBHOOK_URL="https://discord.com/api/webhooks/1479061246903845048/oInyHOf1l7t-jbu9c1lvQDBUxT7m96sUpoDak-V_wjR4IRFi2zz9prC20IKq6cLHF8FO"
# Mettre le lien de votre webhook Discord dans un .env
WEBHOOK_URL=$(grep -E '^WEBHOOK_URL=' .env | cut -d '=' -f2-)
usage=$(df -h / | awk 'NR==2 {gsub(/%/,"",$5); print $5}')
free=$((100 - usage))