# Discourse to Discord Webhook

**URL:** <https://meta.discourse.org/t/discourse-to-discord-webhook/55273>\
**Category:** Extras\
**Created:** [6 januari 2017 om 10:02 UTC](https://meta.discourse.org/t/discourse-to-discord-webhook/55273 "2017-01-06T10:02:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [6 januari 2017 om 10:02 UTC](https://meta.discourse.org/t/discourse-to-discord-webhook/55273/1 "2017-01-06T10:02:46Z")

</div>

> :discourse: ℹ Before trying this, check out the [official chat integration plugin for Discord](https://meta.discourse.org/t/set-up-discord-notifications-using-the-discourse-chat-integration-plugin/66600)

# [Discourse to Discord Webhook](https://github.com/critcola/discourse-to-discord-webhook)

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.

## Demo

See it in action and test it out for yourself on [Crit Cola’s Discourse](https://critcola.com/community/?utm_source=meta.discourse.org&utm_medium=extras-topic&utm_term=demo&utm_content=discourse-to-discord-webhook&utm_campaign=development) and [Discord](https://discord.critcola.com).

## Installation

Just clone it!

```sh
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.

## Configuration

Copy `config-template.php` to `config.php` and populate all non-optional variables after configuring webhooks in both Discourse and Discord.

## License

The Discourse to Discord Webhook script is released under the MIT License.

---

_[View the full topic](https://meta.discourse.org/t/discourse-to-discord-webhook/55273)._
