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"
|
||||
"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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue