add in twitch integration

This commit is contained in:
Blake Ridgway
2026-04-13 03:49:24 -05:00
parent 0ba2f7af4e
commit 668530ce37
11 changed files with 312 additions and 7 deletions

View File

@@ -45,6 +45,9 @@ func main() {
checker.Start(dataDir, checkInterval)
log.Printf("service checker running every %s", checkInterval)
// Start Twitch live status poller
h.StartTwitch(0)
mux := http.NewServeMux()
// Static files
@@ -70,6 +73,7 @@ func main() {
mux.HandleFunc("GET /resume", h.Resume)
mux.HandleFunc("POST /newsletter", h.NewsletterPost)
mux.HandleFunc("GET /changelog", h.Changelog)
mux.HandleFunc("GET /stream", h.Stream)
mux.HandleFunc("GET /sitemap.xml", h.Sitemap)
// Admin routes (auth handled per-handler)