Added post parent check

This commit is contained in:
Eduard Urbach 2022-06-29 11:51:58 +09:00
parent ad3ac4d880
commit ce374fb9c0
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View 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)
}
}
}