We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7fcb76 commit e54059aCopy full SHA for e54059a
cmd/scraper.go
@@ -45,7 +45,13 @@ var (
45
Use: "scraper",
46
Short: "Runs a scraper for grades for the distributed Discord notifications API",
47
RunE: func(cmd *cobra.Command, args []string) error {
48
- log.Info("Running scraper")
+ log.Info("Refreshing token")
49
+ refreshToken(
50
+ defaultViper.GetString(UsernameViperKey.Key()),
51
+ credentialsViper.GetString(PasswordViperKey.Key()),
52
+ )
53
+
54
+ log.Info("Starting scraper thread")
55
56
c := make(chan os.Signal)
57
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
0 commit comments