diff --git a/patches/post-parents/post-parents.go b/patches/post-parents/post-parents.go new file mode 100644 index 00000000..9427f573 --- /dev/null +++ b/patches/post-parents/post-parents.go @@ -0,0 +1,17 @@ +package main + +import ( + "github.com/akyoto/color" + "github.com/animenotifier/notify.moe/arn" +) + +func main() { + defer arn.Node.Close() + + for post := range arn.StreamPosts() { + if post.Parent() == nil { + color.Yellow(post.ID) + color.Red(post.Text) + } + } +}