From 037cdbbcaf2077c9a15804a4684b5097a3adbaed Mon Sep 17 00:00:00 2001 From: Jannover5000r Date: Mon, 16 Jun 2025 21:20:22 +0200 Subject: [PATCH] no webhook message --- main.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index dcd03ad..7f80959 100644 --- a/main.go +++ b/main.go @@ -8,8 +8,9 @@ import ( "log" "net/http" "os" - "os/signal" - "syscall" + + // "os/signal" + // "syscall" "time" Untis "untislogger/Bot" @@ -38,20 +39,20 @@ func init() { log.Println("No Discord webhook provided, Discord notifications will be disabled") } - scheduleIPCheck() // Start the periodic IP check + // scheduleIPCheck() // Start the periodic IP check } func main() { go Untis.Auth() //starting API calls function // Create a channel to receive OS signals - sigChan := make(chan os.Signal, 1) - signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) + /* sigChan := make(chan os.Signal, 1) + signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) - log.Println("Program is running. Press Ctrl+C to stop.") + log.Println("Program is running. Press Ctrl+C to stop.") - // Block until we receive a signal - <-sigChan - log.Println("Shutting down...") + // Block until we receive a signal + <-sigChan + log.Println("Shutting down...") */ } func testPubIP() {