Yes, you can set up a notification system to push new entries and comments tagged with 'stride' from Stack Exchange to your Discord channel. One way to achieve this is by using a webhook combined with an RSS feed from Stack Exchange.
Follow these steps to set up the notification system:
Create a webhook in your Discord channel:
- Go to your Discord server settings.
- Click on "Integrations" and then click "Create Webhook."
- Customize the webhook's name, avatar, and choose the desired channel for notifications.
- Copy the webhook URL, as you'll need it in the next steps.
Get the RSS feed for the 'stride' tag on Stack Exchange:
Visit https://gamedev.stackexchange.com/feeds/tag?tagnames=stride&sort=newest to get the RSS feed for questions tagged with 'stride'. Copy the URL.
Use a service to send RSS feed updates to Discord:
There are several services that can send RSS feed updates to Discord, such as Zapier or Integromat. For this example, we'll use Zapier.
- Sign up for a free account at https://zapier.com/.
- Click on "Make a Zap."
- For the trigger app, search for "RSS" and choose "RSS by Zapier."
- Choose the "New Item in Feed" trigger event and click "Continue."
- Paste the RSS feed URL you copied earlier into the "Feed URL" field, then click "Continue."
- Test the trigger to ensure it's working and click "Continue."
- For the action app, search for "Webhooks" and choose "Webhooks by Zapier."
- Choose "POST" as the action event and click "Continue."
- Paste the webhook URL you copied from Discord into the "URL" field.
- Set "Content Type" to "application/json."
- In the "Data" field, create a JSON payload that Discord will understand. For example:
{
"content": "New question on GameDev StackExchange with 'stride' tag: {{title}} - {{link}}"
}
- Click "Continue" and test the action to ensure it's working.
- Finally, click "Turn on Zap" to activate the notification system.
Now, whenever a new question or comment tagged with 'stride' is posted on Stack Exchange, you'll receive a notification in your Discord channel. You may need to adjust the JSON payload or filter the feed to include comments if desired.