Youtube Timestamp Reddit Bot ← Back to projects

Categories: personal

Update 2023-07-01: this project has been archived. See this blog post.

I recently created YouTubeTimestampRedditBot. It’s a bot that checks reddit for posts which:

  1. link to YouTube
  2. reference a timestamp in the title
  3. don’t embed the timestamp in the link

It comments on those posts with an updated link that has the timestamp embedded, hopefully saving people precious milliseconds navigating to the time in the video.

Bot ranking

While building this bot I learned that there are multiple bot ranking pages for reddit.

  1. https://botrank.pastimes.eu
  2. https://botranks.com

I prefer botranks.com because it’s open source on github and has my bot listed!

About a month into running my bot I found that there’s already a similar bot called reddit-timestamp-bot. It checks for timestamps in comments rather than titles, and has a very different implementation, so I’m going to keep mine running for now.

Hosting (heroku)

I learned a lot about heroku while trying to host this bot, such as the fact that the free tier gives you 550 dyno hours per month. Given a month with 31 days has 744 hours, this leaves me short about 194 hours or ~8 days per month. I also learned heroku doesn’t accept revolute, so I can’t get the extra 450 dyno hours by adding a payment method. And that I can’t set up addons like heroku cron without adding a payment method, so I just have to deal with the ~8 days downtime per month.

Reddit

I got surprisingly positive responses on reddit.

Wow I am shocked. Someone made an actual fucking useful bot that isnt posting some stupid bullshit in shakespeare or yoda speak or giving me a pointless fact barely related to my comment. - u/The_lolrus_

Wow! You are an intelligent bot! 🤖 - u/feeedi

Good bot, its sadly not possible to make timestamps on phone - u/RayliOtter

The last comment about not being able to make timestamps on a phone easily is one of the main reasons I made the bot. I remember there used to be an option to include the current time when sharing a YouTube video on any device, but that feature disappeared a while ago.

Of course there were a few bugs in the bot early on. And there’s probably still more. But generally I’m happy with the bot for now and I plan to maintain it. I hope it saves you precious milliseconds.