2017-10-05 11:48:16 +00: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 10:16:31 +00:00
|
|
|
for user := range arn.StreamUsers() {
|
2017-10-05 11:48:16 +00:00
|
|
|
user.Balance += 100000
|
2017-11-01 10:16:31 +00:00
|
|
|
user.Save()
|
2017-10-05 11:48:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
color.Green("Finished.")
|
|
|
|
}
|