3
2 Comments

Using discord to an eye on your website

Disclaimer, I don't like email. I have to many of it, and even after unsubscribing from most newsletters, it's still messy.

So when I was developing my new side project growthmind.club I changed all the business notifications into Discord.

I use Netlify for the frontend and lambdas, so I set up the hooks to discord (pro-tip, discord can accept "slack style" hooks), for everything like deployments start/finish. I set the lambda that runs the user newsletter to send me a notification every time user sign-ups. All the internal events like start of meeting go to discord. It's awesome. And all of this absolutely free.

I think I'm sharing this because It was way easier to set up then I expected, and that made me happy. And now, I'm working more often, and checking dashboards less often, because I know if something happens I get notified.

Now I just need to also integrate my website analytics into it.

Does anybody have similar cool and easy automations to share?

on February 21, 2021
  1. 1

    Nice, I've also looking more and more for solutions replace email by other technology.
    Can you provide some more information how exactly you setup your solution?

    1. 1

      Yeah, sure.

      First if you don't already have create a discord server, and then you can just follow this tutorial: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
      Which is basically going into to the Integration tab of your server setting and generating a new URL. Then you just need to use that URL + "/slack" [1] in the end for the integrations that Netlify provides [2].

      For the Lambda part of the integration I just wrote a simple axios.post request with some data also in /slack style notifications.

      [1] https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
      [2] https://docs.netlify.com/site-deploys/notifications/#slack-notifications