https://github.com/jd-apprentice/discord-slack-gateway
📫 Send messages from both ways
https://github.com/jd-apprentice/discord-slack-gateway
discord gateway javascript slack
Last synced: about 1 month ago
JSON representation
📫 Send messages from both ways
- Host: GitHub
- URL: https://github.com/jd-apprentice/discord-slack-gateway
- Owner: jd-apprentice
- License: mit
- Created: 2023-06-14T03:50:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-16T02:23:12.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T11:34:45.737Z (about 1 year ago)
- Topics: discord, gateway, javascript, slack
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/discord-slack-gateway
- Size: 149 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-slack-gateway

Image from [HERE](https://venngage.com/blog/discord-integrations/)
## What is this?

This is a gateway between Discord and Slack. It allows you to send messages from Discord to Slack and vice versa.
## How to use it?
### Installation
```
npm i discord-slack-gateway
```
### Example
```js
const { DiscordSlackGateway } = require('discord-slack-gateway');
const gateway = new DiscordSlackGateway({
slack: {
token: "...",
appToken: "...",
signingToken: "...",
channelId: "...",
webhookUrl: "...",
socketMode: true
},
discord: {
webhookUrl: "...",
channelId: "...",
apiToken: "..."
}
});
```
_I highly recommend using socket mode for Slack. It is much faster than the Events API. Also, use environment variables for tokens and other sensitive data_
## What are the options?
### Slack
**signingToken** - Slack signing token. Read https://api.slack.com/authentication/verifying-requests-from-slack
**token** - Slack bot token. Read https://api.slack.com/authentication/token-types
**appToken** - Slack app token. Read https://api.slack.com/authentication/token-types
**channelId** - Slack channel id to listen to
**webhookUrl** - Slack webhook url. Read https://api.slack.com/messaging/webhooks
**socketMode** - Socket mode is a new way for apps to be installed to workspaces. Read https://api.slack.com/apis/connections/socket
### Discord
**webhookUrl** - Discord webhook url generated from post method in https://discohook.org/
**channelId** - Discord channel id to listen to
**apiToken** - Discord api token generated from https://discord.com/developers/applications
### LICENSE
[MIT](./LICENSE)