Set up alerts in Discord

  • Updated

You can have notifications from Hudu posted in your Discord server.

Overview

With Hudu, you can create alerts for expirations and monitored website alerts. You can use email to receive these alerts, but you can also use Webhooks to send to outside services. In this case, we will setup Discord to receive the messages.

Prerequisites

Before starting, you should create the workspace and channel (within that workspace) that you want messages to arrive in.

Instructions

  1. Go to your server and click on Server Settingsmceclip0.png
  2. Click on Webhooks and then click Create Webhookmceclip1.png
  3. Edit the newly generated Webhook: mceclip2.png
  4. Copy the generated url and paste into Hudu.

 

Example Payloads

In order to have a message in your Discord, you will need to deliver a payload. Here are some examples:

Expirations

{"content": "There are *$EXPIRATIONS_COUNT* expirations expiring within *$TRIGGER_DAYS* days. View: $EXPIRATIONS_HUDU_URL."}

Websites

{"content": "*$WEBSITE_NAME* appears to be down. View: $WEBSITE_HUDU_URL"}

Testing Webhooks

We provide a way to test your Webhooks. Navigate to Admin -> Alerts and click on Test Webhook. Note: we are only testing your connection and payload, not your variables, so sample variables will be filled in. 

mceclip0.png

 

 

Still have questions?

Contact us