Added a patch to show languages
This commit is contained in:
parent
342948dbb3
commit
9b6d2db7f0
19
patches/show-user-languages/show-user-languages.go
Normal file
19
patches/show-user-languages/show-user-languages.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/animenotifier/arn"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
languages := map[string]int{}
|
||||||
|
|
||||||
|
for user := range arn.StreamUsers() {
|
||||||
|
languages[user.Language]++
|
||||||
|
}
|
||||||
|
|
||||||
|
for language, users := range languages {
|
||||||
|
fmt.Printf("* [%s] %d users\n", language, users)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user