no webhook message

This commit is contained in:
Jannover5000r 2025-06-16 21:20:22 +02:00
parent ca1d1383d7
commit 037cdbbcaf

19
main.go
View file

@ -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() {