29 lines
501 B
Go
29 lines
501 B
Go
package main
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
"github.com/akyoto/color"
|
|
"github.com/animenotifier/arn"
|
|
)
|
|
|
|
var flaggedWords = regexp.MustCompile("fuck|fucking|freaking|shit|bad|terrible|awful|wtf")
|
|
|
|
func main() {
|
|
color.Yellow("Showing user intros")
|
|
|
|
defer color.Green("Finished.")
|
|
defer arn.Node.Close()
|
|
|
|
for user := range arn.StreamUsers() {
|
|
if user.Introduction == "" {
|
|
continue
|
|
}
|
|
|
|
if flaggedWords.MatchString(user.Introduction) {
|
|
color.Cyan(user.Nick)
|
|
color.Red(user.Introduction)
|
|
}
|
|
}
|
|
}
|