Sign inSign up

zyfax/discord-bot-n8n-webhook

By zyfax

•Updated about 1 year ago

Image
0

1.5K

zyfax/discord-bot-n8n-webhook repository overview

⁠Discord Message Forwarder/Trigger

A lightweight Docker container that forwards Discord messages to a custom webhook URL.

⁠Features

  • Listens to all messages in servers, DMs, and group chats
  • Sends structured JSON data to a specified webhook
  • Supports environment variables for secure configuration
  • Simple and reliable with timeout handling

⁠Environment Variables

  • DISCORD_TOKEN: Your bot's Discord token
  • WEBHOOK_URL: The URL of your target webhook endpoint

⁠Example Webhook Payload

{
  "channelType": "Server Channel",
  "from": "user#1234",
  "chatId": 1234567890,
  "userId": 987654321,
  "message": "Hello, world!",
  "messageId": "111111111111111111"
}
⁠Docker command
docker run -d \
  --name discord-bot-n8n-webhook \
  --restart unless-stopped \
  -e DISCORD_TOKEN=${DISCORD_TOKEN} \
  -e WEBHOOK_URL=${WEBHOOK_URL} \
  zyfax/discord-bot-n8n-webhook
⁠Docker compose
services:
  discord-bot-n8n-webhook:
    image: zyfax/discord-bot-n8n-webhook
    container_name: discord-bot-n8n-webhook
    restart: unless-stopped
    environment:
      - DISCORD_TOKEN=${DISCORD_TOKEN}
      - WEBHOOK_URL=${WEBHOOK_URL}

Tag summary

Content type

Image

Digest

sha256:6f331097c…

Size

51 MB

Last updated

about 1 year ago

docker pull zyfax/discord-bot-n8n-webhook