How to Post Free Games to Your Discord Server via Webhook

I wrote out this guide once before, but I guess I deleted it whenever I remade the website. Anyways, this guide will show you how to get notifications for free games on your Discord server. There’s absolutely no cost to use it whatsoever, but you’re going to have to do the steps yourself to get it to work. That being said, let’s get started!

Part 1 – Creating the Webhook

A webhook is basically a URL with permissions. It allows a user or program to either send or receive content by accessing the given URL. For this to work, you’re going to need to create a webhook linking to your Discord server. NOTE: This can not be done on a mobile device; you’ll need to use a Desktop client for it!

1. First, navigate to your Discord server, and open the server settings.

2. Next, on the Server Setting page, find the Webhooks tab and click on it.

3. On the Webhooks tab, in the top-right corner, click on the “Create Webhook” button. A pop-up will appear.

4. On this pop-up, set the name, channel, and icon as you see fit; when a game is posted to the server, it will appear in the selected channel and with the name provided as a bot.

5. Copy your Webhook URL and put it somewhere safe. DO NOT SHARE YOUR WEBHOOK URL WITH ANYONE!

Now you have successfully created a webhook for posting content to your Discord server. Next up, we’ll go about setting up an IFTTT applet.


Part 2 – Creating the IFTTT Applet

IFTTT (IF This, Then That) is a website that’s particularly useful for setting up content controllers and automating functions. We’ll be using it to crawl Reddit’s /r/gamedeals subreddit for posts about free games, then converting that data into a JSON format and posting it via the webhook you created to your Discord server.

1. Before we start creating the applet, you’re going to need to create an IFTTT account. It’s completely free for personal use. You can click here to create an account. If you already have one, proceed onward.

2. Once you’ve made an account, you’ll need to link it to a Reddit account. You can click here if you need to create a Reddit account. If you already have one, ensure you’re logged into it and click here to link the two accounts.

3. You’ll now need to sign into the IFTTT for Business platform. You can view the platform by clicking here.

4. Once you’re logged in, navigate to the Applets section and click on the “New Applet” button.

5. On the Create A New Applet page, you’ll see a host of options to fill out. Let’s get your applet built!

5a. Where it says “Trigger”, you’ll need to select “Reddit”.

5b. After you select “Reddit”, a new drop-down menu will appear with the title “Please Select”. From the drop-down menu, select “New post from search”.

5c. A new field should have appeared, asking what you’re searching for. Enter the following, exactly the way it’s written, into the “Value” block.
title:'free' title:'steam'
title:’100%’ subreddit:gamedeals

5d. Next up is the “Action” section. Select the “Add Action” button.

5e. In the “Search Services” block, type in “webhook” and select the option that appears.

5f. From the drop-down menu that appears, select “Make a web request”.

5g. Under the URL field, you’re going to input your webhook URL that you set aside from Part 1.

5h. Under the Method field, select “POST”.

5i. Under the Content Type field, select “application/json”.

5j. Under the Body field, input the following, exactly the way it’s presented:

{
	"content": "",
	"embeds": [{
		"title": "<<<{{Title}}>>>",
		"url": "{{PostURL}}",
		"image": {
			"url": "{{ImageURL}}"
		}
	}]
}

NOTE: If you want to ping a role, such as @Free Games, you will include the role ID in the Content section (see the image below).

5l. All that’s left is to name and describe your applet. Save it and you’re done!


Part 3 – Enabling Your Applet For Use

All that we have to do now is enable the applet. Once it’s enabled, it’ll continue to run and scan the subreddit periodically for posts.

1. On the Private Applet screen (which should be visible after saving your applet), click on the link title “Enable it on IFTTT”.

2. On the next page, click on the giant “Connect” toggle and wait for it to enable.

3. Once you get the “Connected” status, you’re all set! Your applet should now scan /r/gamedeals for any new free games and post them to your Discord. Please note that this won’t scan posts recursively; it will only find new posts.

Enjoy!

10 Comments

    1. IFTTT’s source filtering is a bit limited; I don’t think there’s a way to exclude results, only to set requirements for what results are posted. For example, the code I included will only show games that are 100% free and contain a Steam key; itch.io games will not be shown unless it is also available there.

    1. Hi! I’m sorry to hear you’re having problems. I haven’t experienced this Particular issue myself but i haven’t had to make a new account in quite some time. I’ll try and make a new business account and see what all needs to be changed.

Leave a Reply

Your email address will not be published. Required fields are marked *