Sends a GET request to a webhook when pinged, used for n8n automation
Find a file
2025-09-25 13:15:19 -07:00
.dockerignore docker support 2025-09-24 21:53:33 -07:00
.env.example Only trigger when bot is pinged 2025-09-24 22:25:40 -07:00
.gitignore Initial commit 2025-09-24 21:42:44 -07:00
Dockerfile docker support 2025-09-24 21:53:33 -07:00
index.js Only trigger when bot is pinged 2025-09-24 22:25:40 -07:00
package-lock.json yea 2025-09-24 21:43:46 -07:00
package.json yea 2025-09-24 21:43:46 -07:00
README.md Update README.md 2025-09-25 13:15:19 -07:00

Discord Message Listener

Listens for messages in a given channel, sends it to webhook (used for n8n workflow triggering)

Thanks to Deepseek once again 👍🏿

Installation

  • git clone the repository
  • cd discord-message-limiter
  • Configure .env (refer to the .env section)
  • npm install

Usage

  • node .
  • Test by having the correct role and pinging the bot
    • You will receive log message in the console if everything worked

.env

  • DISCORD_TOKEN - Bot token
  • WEBHOOK_URL - Webhook url you want to trigger
  • TARGET_CHANNEL_ID - Channel ID to listen from
  • REQUIRED_ROLE_ID - Role ID needed to trigger the webhook

Docker

  • Configure everything above first then run the following:
docker build -t discord-message-listener .
docker run -d --name discord-message-listener --env-file .env discord-message-listener

I'm not providing any support to this garbage code, you are on your own