Reddit user /u/Insanimate made this hotsauce packet painting and posted it on /r/pics. The president of TacoBell-or whoever runs their social media accounts-then showed up in the post and asked how they could buy one.
Nobody noticed. The painting was posted over a year ago, yet the president's comment went unrecognized and unseen at only 13 points before it wound up on /r/bestof last week.
This is a scenario I've seen play out all over reddit whenever a 'celebrity' reddit user makes a comment. Nobody knows, or is skeptical about the veracity of a user's identity.
So to help ameliorate this problem I made a reddit bot that searches through a user's history, and returns a table of the user's AMA posts. If there are no such posts, then nothing happens.
The Code
The code above is commented, so I won't go through it line by line, but in broad strokes:
1) The script grabs all the most recent comments in a subreddit, and checks to see if they begin with "!identify", which I have chosen as my "summoning" phrase.
2) The script checks a MongoDB database to see whether or not we've handled this comment before. If not, it continues.
3) Then, if the comment starts with "!identify" the script will either: Use the parent comment's author and will check for their AMAs, or if a user is specified, then it will check for their AMAs
4) If any AMAs are found some sparse information is saved about them (Permalink, title, number of comments) and is formatted into a reddit table.
5) The bot comments, adds the summoning comment IDs to the Mongo database, and sleeps for 5 minutes (or however long you want).
The output looks a little something like this:
The code is pretty ugly, but it works okay from what I've seen and I did this on a lark, so I'm not terribly concerned. Now I have to figure out how to spread the word about the summoning phrase, so I can set it loose in the wild and see if people actually find it useful and so I can improve it if need be.
Next Steps
1) Set this up to run continuously on an unused computer in my house, because I'm too cheap and lazy to find and set up a host online.
2) Make it so it deletes comments with -1 comment karma, so the reddit hivemind won't get angry.