'id' contains an integer specifying the id (suchwow) of the last meme posted to reddit Steps: Go to https://www.reddit.com/prefs/apps Click "Create App" and select "script" Enter any valid url as the redirect url Enter any name in the name field ('Wowbot' preferred) Copy the app key (below name) and replace with the key Copy the app secret and replace with the secret Replace and with your bot's credentials Replace with subreddit name Workaround for spam filter: Add your bot to your subreddit as a mod with perms to manage posts Set mod=1 in the code