<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: forcequit</title>
    <description>The latest articles on DEV Community by forcequit (@forcequit).</description>
    <link>https://dev.to/forcequit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1160107%2Fd4a273cf-fc90-4c18-a50a-25f89f177225.jpg</url>
      <title>DEV Community: forcequit</title>
      <link>https://dev.to/forcequit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/forcequit"/>
    <language>en</language>
    <item>
      <title>Automating DevHunt: How We Put Weekly Emails on Autopilot</title>
      <dc:creator>forcequit</dc:creator>
      <pubDate>Thu, 14 Sep 2023 20:32:49 +0000</pubDate>
      <link>https://dev.to/forcequit/automating-devhunt-how-we-put-weekly-emails-on-autopilot-3m8l</link>
      <guid>https://dev.to/forcequit/automating-devhunt-how-we-put-weekly-emails-on-autopilot-3m8l</guid>
      <description>&lt;p&gt;Bot-driven upvotes? Not on our watch. &lt;a href="https://devhunt.org" rel="noopener noreferrer"&gt;DevHunt&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is what we needed to happen, email wise:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On register, trigger a webhook to send a welcome email.&lt;/li&gt;
&lt;li&gt;Announce the top three winners with badges immediately after voting ends at midnight on Mondays.&lt;/li&gt;
&lt;li&gt;After 3 hours, notify everyone about the winners.&lt;/li&gt;
&lt;li&gt;9 hours post-voting, inform everyone about the next set of tools to vote for.&lt;/li&gt;
&lt;li&gt;Every Friday, remind those who didn’t open the email to cast their vote.&lt;/li&gt;
&lt;li&gt;Automate the cycle weekly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;And this is what we ended up doing&lt;/strong&gt;&lt;br&gt;
We liked the look of the &lt;a href="https://sensorpro.eu" rel="noopener noreferrer"&gt;Sensorpro&lt;/a&gt; Trigger emails. With cronjobs, they can fetch content from our Supabase API, so a totally hands-free operation. Nice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is what the Email Design looks like.&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5peq5x8860ywe78p6xhl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5peq5x8860ywe78p6xhl.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
👆🏿So all we needed to do here was set that url liquid containing whatever content our API puts there, totally set and forget.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And this is the Trigger code:&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1gne13dssasty9suwhac.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1gne13dssasty9suwhac.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fun fact: DevHunt is on ProductHunt today. We know, right? 🙄 The absolute irony! Still, give us a &lt;a href="https://www.producthunt.com/posts/devhunt-2" rel="noopener noreferrer"&gt;fair vote&lt;/a&gt; 🥇&lt;/p&gt;

</description>
      <category>producthunt</category>
      <category>email</category>
      <category>cron</category>
    </item>
  </channel>
</rss>
