Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ni5arga/modmail-to-discord-slack
A Devvit app which sends incoming and outgoing modmails from your subreddit's modmail to a Discord or Slack webhook instantly. Sends the message, sender, participant information etc. & other relevant information to the webhook payload.
https://github.com/ni5arga/modmail-to-discord-slack
devvit devvit-app discord discord-webhooks moderation modmail reddit reddit-api reddit-moderation reddit-modmail slack slack-webhooks subreddit typescript webhook
Last synced: about 2 hours ago
JSON representation
A Devvit app which sends incoming and outgoing modmails from your subreddit's modmail to a Discord or Slack webhook instantly. Sends the message, sender, participant information etc. & other relevant information to the webhook payload.
- Host: GitHub
- URL: https://github.com/ni5arga/modmail-to-discord-slack
- Owner: ni5arga
- License: gpl-3.0
- Created: 2024-01-20T23:29:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T14:49:59.000Z (3 months ago)
- Last Synced: 2024-08-23T14:39:50.537Z (3 months ago)
- Topics: devvit, devvit-app, discord, discord-webhooks, moderation, modmail, reddit, reddit-api, reddit-moderation, reddit-modmail, slack, slack-webhooks, subreddit, typescript, webhook
- Language: TypeScript
- Homepage: https://developers.reddit.com/apps/modmailtodiscord
- Size: 120 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reddit Modmail To Discord or Slack
A Devvit [(Reddit's Developer Platform)](https://developers.reddit.com/) app which sends incoming and outgoing modmails from your subreddit's modmail to a Discord or Slack webhook instantly. Sends the message, sender, participant information etc. & other relevant information to the webhook payload.App Link : https://developers.reddit.com/apps/modmailtodiscord
## Screenshots
| Discord |
| --- |
| ![Discord](https://i.imgur.com/yq5VX5o.png) || Slack |
| --- |
| ![Slack](https://i.imgur.com/ZwJa805.png) |## Setup Instructions
### Discord
To set-up this app to send incoming and outgoing modmails to a particular channel of your Discord server through a Webhook, follow these steps.1. **Get Discord Webhook URL** : You'll need to generate a Discord Webhook URL from channel settings. You can learn how to get webhook URLs from [this guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) or detailed instructions on how to generate Discord Webhook URL can be found below. Discord Webhook URLs look like this: `https://discord.com/api/webhooks/1234567880123/38823ax30320bx_d83289324Q`.
Instructions on how to Get Discord Webhook URL
1. **Create a Discord Webhook:** - Open or create a Discord server where you have the necessary permissions. - Go to the channel where you want the webhook to send messages. - Right-click on the channel name and select "Edit Channel."
2. **Navigate to Integrations:** - In the channel settings, find the "Webhooks" option under the Integrations tab in the left-hand menu. - Click on "Webhooks" to access the webhook settings.
3. **Create a New Webhook:** - Click the "Create Webhook" button. - Customize the webhook by giving it a name, setting the profile picture (optional), and choosing the channel where it will send messages. - Once configured, click the "Save" or "Create" button.
4. **Copy the Webhook URL:** - After creating the webhook, you'll see a section with the webhook URL. - Click on the "Copy" button next to the webhook URL to save it to your clipboard.2. **Put the URL in your app settings** : After you have obtained the webhook URL, you'll need to put it in the app settings. App settings can be found at `https://developers.reddit.com/r/insert-your-subreddit-name-here/apps/modmailtodiscord/`. After putting the Webhook URL in the text-box - click on the Save Changes button.
Now the app will send all incoming or outgoing modmails from your subreddit's modmail to the Discord channel through the webhook.
### Slack
To set-up this app to send incoming and outgoing modmails to a particular channel of your Slack workspace through a Webhook, follow these steps.
1. **Get Slack Webhook URL** : You'll need to obtain a Webhook URL to send the messages to a particular channel of your workspace - [here's a guide](https://api.slack.com/messaging/webhooks) on how to obtain the Slack Webhook URL. Slack Webhook URLs look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`.
2. **Put the URL in your app settings** : After you have obtained the webhook URL, you'll need to put it in the app settings. App settings can be found at `https://developers.reddit.com/r/insert-your-subreddit-name-here/apps/modmailtodiscord/`. After putting the Webhook URL in the text-box - click on the Save Changes button.Now the app will send all incoming or outgoing modmails from your subreddit's modmail to the Slack channel through the webhook.
## Details
The app sends all incoming and outgoing modmails from your subreddit's modmail to your Discord/Slack channel through webhooks. Here are the details the app currently sends (more to be added soon):1. Modmail Subject - The subject of the modmail (incoming or outgoing).
2. Modmail Link - The link of the modmail thread, the app sends `https://mod.reddit.com/all/{conversation-ID-here}` links.
3. Author - Author of the modmail message or the latest message in the modmail thread.
4. Body - Sends the message body in markdown.
5. Participant - The participant of the modmail conversation (most of the times it'll be the user, unless it's a mod discussion or a subreddit to subreddit conversation).
6. Participating As - What the user is participating as, whether as `participant_user` or as `moderator`.## Changelog
### Changes in 0.0.16
Added a setting for the app to ignore outgoing modmail messages by mods and not send them to the webhook (optional).
### Changes in 0.0.15
- Decluttered Discord & Slack embed.
- Added support for more Discord webhook URLs (Canary & PTB etc.)## Contributions
Feel free to contribute and improve this project. Pull requests and issues are always welcome.## License
This source code is licensed under [GNU General Public License v3.0](https://github.com/ni5arga/Modmail-To-Discord-Slack/blob/main/LICENSE).