Sends a GET request to a webhook when pinged, used for n8n automation
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
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 clonethe repositorycd discord-message-limiter- Configure
.env(refer to the.envsection) 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 tokenWEBHOOK_URL- Webhook url you want to triggerTARGET_CHANNEL_ID- Channel ID to listen fromREQUIRED_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