diff --git a/main.go b/main.go index 9525183..cc610c3 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "log" "os" + "safetwitch-backend/extractor/chat" "safetwitch-backend/routes" "strings" @@ -49,6 +50,8 @@ func main() { router.Use(CORS()) router.Use(gin.Recovery()) + go chat.BeginTwitchChatConnection() + router.Use(ErrorHandler) routes.SetRoutes(router) router.NoRoute(notFoundHandler)