This PHP script acts an intermediary between Discourse and Discord, receiving webhooks from Discourse and parsing them into an optimal format before relaying them to Discord.
See it in action and test it out for yourself on Crit Cola's Discourse and Discord.
Just clone it!
git clone https://github.com/critcola/discourse-to-discord-webhook.git
This has been tested with and is supported on PHP 7.1, but should work fine on older versions of PHP.
Copy config-template.php
to config.php
and populate all non-optional variables after configuring webhooks in both Discourse and Discord.
Crit Cola is connecting and empowering the world's best players. Primarily an Overwatch clan, we're a growing community of PC gamers. Join our Steam group and follow us on Twitter. Cheers!
The Discourse to Discord Webhook script is released under the MIT License.