no webhook message
This commit is contained in:
parent
ca1d1383d7
commit
037cdbbcaf
1 changed files with 10 additions and 9 deletions
19
main.go
19
main.go
|
|
@ -8,8 +8,9 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
|
||||||
"syscall"
|
// "os/signal"
|
||||||
|
// "syscall"
|
||||||
"time"
|
"time"
|
||||||
Untis "untislogger/Bot"
|
Untis "untislogger/Bot"
|
||||||
|
|
||||||
|
|
@ -38,20 +39,20 @@ func init() {
|
||||||
log.Println("No Discord webhook provided, Discord notifications will be disabled")
|
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() {
|
func main() {
|
||||||
go Untis.Auth() //starting API calls function
|
go Untis.Auth() //starting API calls function
|
||||||
// Create a channel to receive OS signals
|
// Create a channel to receive OS signals
|
||||||
sigChan := make(chan os.Signal, 1)
|
/* sigChan := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)
|
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
|
// Block until we receive a signal
|
||||||
<-sigChan
|
<-sigChan
|
||||||
log.Println("Shutting down...")
|
log.Println("Shutting down...") */
|
||||||
}
|
}
|
||||||
|
|
||||||
func testPubIP() {
|
func testPubIP() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue