Update secret management
Some checks failed
Build and Deploy / build (push) Failing after 1m39s

This commit is contained in:
2025-04-20 10:51:26 +02:00
parent 8356e9c021
commit 8794d54a73
5 changed files with 45 additions and 7 deletions

16
main.py
View File

@@ -10,12 +10,16 @@ import api.ntfy as ntfy
import threading
from config import (
BOT_TOKEN,
AUTHORIZED_USER_ID,
NTFY_AUTH_HEADER,
KUMA_API_PASSWORD,
TORRENT_API_PASSWORD,
)
TOKEN = "7396669954:AAH8_I0Y-qg3j_LfbUdRTOLPDKh80NdijMo"
AUTHORIZED_USER_ID = 634303772 # Replace with your Telegram user ID
NTFY_SERVER = "http://192.168.1.2:54720"
NTFY_AUTH_HEADER = "tk_cdmwd6ix255g3qgo4dx3r0gakw4y3"
DB_PATH = "subscriptions.db"
DB_PATH = "config/subscriptions.db"
# --- Command Handlers ---
@@ -202,9 +206,9 @@ def main():
print("Starting Jarvis...")
# Initiate api
kuma_api = kuma.KumaAPI("http://192.168.1.2:36667", "k!PTfyvoIJho9o*gX6F1")
kuma_api = kuma.KumaAPI("http://192.168.1.2:36667", KUMA_API_PASSWORD)
torrent_api = torrent.TorrentApi(
"http://192.168.1.17:8112", "tMHNjrJr7nhjyhJrYsahi4anq2h6LJ", username="MrZaiko"
"http://192.168.1.17:8112", TORRENT_API_PASSWORD, username="MrZaiko"
)
ntfy_api = ntfy.NtfyAPI(DB_PATH, NTFY_SERVER, NTFY_AUTH_HEADER, AUTHORIZED_USER_ID)