Updated jobs
This commit is contained in:
27
jobs/refresh-games/refresh-games.go
Normal file
27
jobs/refresh-games/refresh-games.go
Normal file
@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
color.Yellow("Refreshing game information")
|
||||
|
||||
defer color.Green("Finished.")
|
||||
defer arn.Node.Close()
|
||||
|
||||
for user := range arn.StreamUsers() {
|
||||
if user.Accounts.Osu.Nick != "" {
|
||||
osu(user)
|
||||
}
|
||||
|
||||
if user.Accounts.Overwatch.BattleTag != "" {
|
||||
overwatch(user)
|
||||
}
|
||||
|
||||
if user.Accounts.FinalFantasyXIV.Nick != "" && user.Accounts.FinalFantasyXIV.Server != "" {
|
||||
ffxiv(user)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user