Due to boredom at work, I thought of an idea.
What if I tweeted everyday something like
"Day XXX, has @ElonMusk followed me yet?"
If he actually followed me, that would be amazing, and I could write it on my resume.
So off I went.
I created a new twitter account called @ElonMuskFan8. To grab Elon's interest, I made my profile a picture of him next to Mars. Then I got API keys from Twitter's developer site. One gotcha I found was, I had to enable write access and THEN regenerate my API keys and secrets or else I'd get 401 errors when trying to POST a tweet.
I setup a simple nodeJS project, then installed twitter and express. My app would simply start a server and run an interval, checking each minute if it was 9:30 am. If so, I would send a tweet that said:
Day XX: Has @ElonMusk followed me yet?
For serving my app I chose Heroku. I followed their instructions here and was able to deploy my app within 20 minutes. I also stored my API secrets in heroku's environment variables so I don't expose them in my Github repo.
Now we wait and see if Elon Musk ever replies or follows back. It may take months or years, but we don't care since the bot is taking care of it for us.
If you like these types of posts let me know!