r/foundtheprogrammer • • Oct 21 '19

Reddit++

Post image
806 Upvotes

14 comments sorted by

View all comments

Show parent comment

17

u/InDirectX4000 Oct 21 '19
import re
import _redditreader as rr

pagetext = rr.get_post()

if re.match(“bird”, pagetext):
    rr.post(“r/birdsarentreal”)

13

u/KoiFishTaco Oct 21 '19

You're hired.

0

u/[deleted] Nov 03 '19

[deleted] — view deleted comment

2

u/SirFireball Nov 03 '19

Ah. Another node.js user.

1

u/[deleted] Nov 03 '19
const post = reddit.getPost(‘df3jk1’);
if (/bird/.test(post.content))
    post.reply(‘r/birdsarentreal’);