Bot-driven upvotes? Not on our watch. DevHunt is open-source, crafted by devs, for devs, with a primary goal to operate autonomously. While Vercel and Supabase serve us well, hands-free email automation was a bit of a buzzkill.
This is what we needed to happen, email wise:
- On register, trigger a webhook to send a welcome email.
- Announce the top three winners with badges immediately after voting ends at midnight on Mondays.
- After 3 hours, notify everyone about the winners.
- 9 hours post-voting, inform everyone about the next set of tools to vote for.
- Every Friday, remind those who didnβt open the email to cast their vote.
- Automate the cycle weekly.
And this is what we ended up doing
We liked the look of the Sensorpro Trigger emails. With cronjobs, they can fetch content from our Supabase API, so a totally hands-free operation. Nice.
This is what the Email Design looks like.
ππΏSo all we needed to do here was set that url liquid containing whatever content our API puts there, totally set and forget.
Fun fact: DevHunt is on ProductHunt today. We know, right? π The absolute irony! Still, give us a fair vote π₯
Top comments (1)
good article