Added a patch to set basic intros
This commit is contained in:
parent
83159a3951
commit
b5f2f4f16b
18
patches/user-tagline-to-intro/user-tagline-to-intro.go
Normal file
18
patches/user-tagline-to-intro/user-tagline-to-intro.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/animenotifier/arn"
|
||||||
|
"github.com/fatih/color"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
color.Yellow("Setting tagline as user intro")
|
||||||
|
|
||||||
|
defer color.Green("Finished.")
|
||||||
|
defer arn.Node.Close()
|
||||||
|
|
||||||
|
for user := range arn.StreamUsers() {
|
||||||
|
user.Introduction = user.Tagline
|
||||||
|
user.Save()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user