mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: roblox likes route
This commit is contained in:
parent
fea1c9ced9
commit
a2a99a8dcc
7 changed files with 81 additions and 1 deletions
18
internal/worker/roblox.go
Normal file
18
internal/worker/roblox.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package worker
|
||||
|
||||
import (
|
||||
"api/internal/service"
|
||||
"log/slog"
|
||||
"time"
|
||||
)
|
||||
|
||||
var GrowARobloxianLikes int
|
||||
|
||||
func StartRobloxWorker() {
|
||||
slog.Info("Starting Roblox worker...")
|
||||
GrowARobloxianLikes = service.GetRobloxGrowARobloxianLikesCount()
|
||||
|
||||
for range time.Tick(1 * time.Minute) {
|
||||
GrowARobloxianLikes = service.GetRobloxGrowARobloxianLikesCount()
|
||||
}
|
||||
}
|
||||
|
|
@ -5,4 +5,5 @@ func StartWorkers() {
|
|||
go StartLastFMWorker()
|
||||
go StartGitHubWorker()
|
||||
go StartComputerWorker()
|
||||
go StartRobloxWorker()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue