Added post parent check
This commit is contained in:
parent
ad3ac4d880
commit
ce374fb9c0
17
patches/post-parents/post-parents.go
Normal file
17
patches/post-parents/post-parents.go
Normal file
@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user