19 lines
282 B
Go
Raw Normal View History

2017-10-05 13:48:16 +02:00
package main
import (
"github.com/animenotifier/arn"
"github.com/fatih/color"
)
func main() {
color.Yellow("Adding balance to all users")
// Iterate over the stream
2017-11-01 11:16:31 +01:00
for user := range arn.StreamUsers() {
2017-10-05 13:48:16 +02:00
user.Balance += 100000
2017-11-01 11:16:31 +01:00
user.Save()
2017-10-05 13:48:16 +02:00
}
color.Green("Finished.")
}