diff --git a/main.go b/main.go index 5d8d741..af517be 100644 --- a/main.go +++ b/main.go @@ -25,12 +25,6 @@ type Scraper struct { done chan struct{} } -func init() { - if err := godotenv.Load(); err != nil { - log.Fatalf("Error loading .env file: %v", err) - } -} - func (s *Scraper) sendText(number string) { s.waitGroup.Add(1) defer s.waitGroup.Done() @@ -165,6 +159,12 @@ func (s *Scraper) scrapeLoop(ctx context.Context) { } } +func init() { + if err := godotenv.Load(); err != nil { + log.Fatalf("Error loading .env file: %v", err) + } +} + func main() { log.Println("Polling for da tikz...")