Skip to content

[EN] Create and Add your Discord Webhook

Taro edited this page Apr 19, 2024 · 4 revisions

Create and Add your Discord Webhook

Step-by-Step Guide

Note

Skip this step if you already have your own server.

Creating your own Discord Server

  1. Click the Add a Server Button.

1 - Create Server

  1. Click the Create My Own Button.

2 - Create Server

  1. Choose the name of your server and Click the Create button.

3 - Create Server

Creating a new Channel in your Discord Server

  1. Click the Create Channel button.

4 - Create Channel

  1. Set the channel to be Text, set the Channel Name and click the Create Channel button.

5 - Create Channel

Creating the Discord Webhook

  1. On your newly created galactica-alerts channel, click the icon to Edit Channel.

6 - Edit Channel

  1. Click the Integrations tab.

7 - Integrations

  1. Click the Create Webhook button.

8 - Create Webhook

  1. This will create a new Spidey Bot (highlighted in orange)

9 - Create Webhook

  1. Set the name of the webhook and channel and Save your changes

10 - Create Webhook

  1. Click the Copy Webhook URL button to copy the webhook URL.

11 - Copy Webhook URL

  1. Head over to your Galactica Node SSH Client and use your favorite text editor to edit your $HOME/.bash_profile
# Use your preferred text editor (vi, vim, nano, etc...)

vim $HOME/.bash_profile
# $HOME/.bash_profile
# Paste your Discord Webhook URL into the following variable
export GN_DISCORD_WEBHOOK="PASTE YOUR DISCORD WEBHOOK URL HERE" 

Example:

12 - BASHRC

You're ready to use the Discord Webhook for any monitoring alerts on your Galactica Node!