{"_id":"@binodev/n8n-nodes-discord-trigger","_rev":"3-b0b7d864127c972cec36d068d70fd8f9","name":"@binodev/n8n-nodes-discord-trigger","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@binodev/n8n-nodes-discord-trigger","version":"0.1.0","keywords":["n8n","n8n-node","n8n-community-node","discord","webhook","trigger","bot"],"author":{"name":"Gabin PADONOU","email":"padonougabin10@gmail.com"},"license":"MIT","_id":"@binodev/n8n-nodes-discord-trigger@0.1.0","maintainers":[{"name":"binodev","email":"padonougabin10@gmail.com"}],"homepage":"https://n8n.io","bugs":{"url":"https://github.com/binodev/n8n-nodes-discord-trigger/issues"},"n8n":{"nodes":["dist/nodes/DiscordTrigger/DiscordTrigger.node.js"],"credentials":["dist/credentials/DiscordOAuth2Api.credentials.js"],"n8nNodesApiVersion":1},"dist":{"shasum":"2d140408f6c8b5bc82926d05ace5f877e2a7c47a","tarball":"https://registry.npmjs.org/@binodev/n8n-nodes-discord-trigger/-/n8n-nodes-discord-trigger-0.1.0.tgz","fileCount":13,"integrity":"sha512-J7EYcQVw1yJrwVIO2lh3JWCfEfpAIJ69JBaqV3tLXe+lWx3qaSRaKIPt5x5Fsp5FKHRp/1gcutCqwgEphoPFPg==","signatures":[{"sig":"MEQCIAP/UXOMReCYixUCmGF6YSI/3JS9uqu0TPJecR/X1jELAiB6cg3KO7Hk6TblQSyoVL761NHBegfyte3wd/xTWDZXkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80394},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"2bfa70f986ebbfd6bafb8fac8fe7bd3cc5eb1bb8","scripts":{"dev":"tsc --watch --skipLibCheck","lint":"eslint . --ext .ts","pack":"npm pack","test":"node scripts/test.js","build":"node scripts/build.js","format":"prettier --write .","prepublishOnly":"npm run build && npm run lint -c .eslintrc.prepublish.js"},"_npmUser":{"name":"binodev","email":"padonougabin10@gmail.com"},"repository":{"url":"git+https://github.com/binodev/n8n-nodes-discord-trigger.git","type":"git"},"_npmVersion":"10.8.2","description":"n8n node to trigger workflows based on Discord messages","directories":{},"_nodeVersion":"20.18.0","dependencies":{"axios":"^1.4.0","discord.js":"^13.12.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.39.0","n8n-core":"^0.162.0","prettier":"^2.8.8","typescript":"~4.9.5","@types/node":"^18.16.0","n8n-workflow":"^0.148.0","@types/express":"^4.17.17","@typescript-eslint/parser":"^5.59.1","eslint-plugin-n8n-nodes-base":"^1.14.0","@types/request-promise-native":"^1.0.18","@typescript-eslint/eslint-plugin":"^5.59.1"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-discord-trigger_0.1.0_1742227107339_0.025572309257087866","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@binodev/n8n-nodes-discord-trigger","version":"0.1.1","keywords":["n8n","n8n-node","n8n-community-node","discord","webhook","trigger","bot"],"author":{"name":"Gabin PADONOU","email":"padonougabin10@gmail.com"},"license":"MIT","_id":"@binodev/n8n-nodes-discord-trigger@0.1.1","maintainers":[{"name":"binodev","email":"padonougabin10@gmail.com"}],"homepage":"https://n8n.io","bugs":{"url":"https://github.com/binodev/n8n-nodes-discord-trigger/issues"},"n8n":{"nodes":["dist/nodes/DiscordTrigger/DiscordTrigger.node.js"],"credentials":["dist/credentials/DiscordOAuth2Api.credentials.js"],"n8nNodesApiVersion":1},"dist":{"shasum":"f96a79afcae71b8b1e656f4c931950f02229c131","tarball":"https://registry.npmjs.org/@binodev/n8n-nodes-discord-trigger/-/n8n-nodes-discord-trigger-0.1.1.tgz","fileCount":13,"integrity":"sha512-rpmuUNxyuqzCIHgyzVBlL+xZDIp+w9+CQfomJCnIZkeg4b6xj/r7MSCgVVNMdIuafqnNglDOrFaPkLbEnRaJ5A==","signatures":[{"sig":"MEUCIQDpOLyh8lnwjOxtg9KtoQlsiEglnnf7nLbcrsccQClR2AIgcgO69GNfeWjzK++X9ytSQdmpUr7UBCICRdbnd2WHR/k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80401},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"1f13ee97fa360350296a07c8f3f1adc5ab750aa1","scripts":{"dev":"tsc --watch --skipLibCheck","lint":"eslint . --ext .ts","pack":"npm pack","test":"node scripts/test.js","build":"node scripts/build.js","format":"prettier --write .","prepublishOnly":"npm run build && npm run lint -c .eslintrc.prepublish.js"},"_npmUser":{"name":"binodev","email":"padonougabin10@gmail.com"},"repository":{"url":"git+https://github.com/binodev/n8n-nodes-discord-trigger.git","type":"git"},"_npmVersion":"10.8.2","description":"n8n node to trigger workflows based on Discord messages","directories":{},"_nodeVersion":"20.18.0","dependencies":{"axios":"^1.4.0","discord.js":"^13.12.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.39.0","n8n-core":"^0.162.0","prettier":"^2.8.8","typescript":"~4.9.5","@types/node":"^18.16.0","n8n-workflow":"^0.148.0","@types/express":"^4.17.17","@typescript-eslint/parser":"^5.59.1","eslint-plugin-n8n-nodes-base":"^1.14.0","@types/request-promise-native":"^1.0.18","@typescript-eslint/eslint-plugin":"^5.59.1"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-discord-trigger_0.1.1_1742233045995_0.29403721021716533","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@binodev/n8n-nodes-discord-trigger","version":"0.1.3","description":"n8n node to trigger workflows based on Discord messages","keywords":["n8n","n8n-node","n8n-community-node","discord","webhook","trigger","bot"],"license":"MIT","homepage":"https://n8n.io","author":{"name":"Gabin PADONOU","email":"padonougabin10@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/binodev/n8n-nodes-discord-trigger.git"},"main":"dist/index.js","scripts":{"build":"node scripts/build.js","dev":"tsc --watch --skipLibCheck","format":"prettier --write .","lint":"eslint . --ext .ts","prepublishOnly":"npm run build && npm run lint -c .eslintrc.prepublish.js","test":"node scripts/test.js","pack":"npm pack"},"n8n":{"n8nNodesApiVersion":1,"credentials":["dist/credentials/DiscordOAuth2Api.credentials.js"],"nodes":["dist/nodes/BinodevDiscordTrigger/BinodevDiscordTrigger.node.js"]},"devDependencies":{"@types/express":"^4.17.17","@types/node":"^18.16.0","@types/request-promise-native":"^1.0.18","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","eslint":"^8.39.0","eslint-plugin-n8n-nodes-base":"^1.14.0","n8n-core":"^0.162.0","n8n-workflow":"^0.148.0","prettier":"^2.8.8","typescript":"~4.9.5"},"dependencies":{"axios":"^1.4.0","discord.js":"^13.12.0"},"_id":"@binodev/n8n-nodes-discord-trigger@0.1.3","gitHead":"1f13ee97fa360350296a07c8f3f1adc5ab750aa1","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/binodev/n8n-nodes-discord-trigger/issues"},"_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-fUTNgT1qW9jPX7tTD2ruQ+Mq3XcZMsOPUax4wtOoW6FBZGaGDvEvWfmtxUCaxESEI3yOPsOBaUGoa3hjlub+IA==","shasum":"6b3c444de27b58d5888b3ff734736219995efc03","tarball":"https://registry.npmjs.org/@binodev/n8n-nodes-discord-trigger/-/n8n-nodes-discord-trigger-0.1.3.tgz","fileCount":16,"unpackedSize":90333,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCZugEG/66O9XVEh9GXkDmcCfuhU7ZS2xd+9ZJ0tYkwxQIgPllLZSmSYDzvbNYgCpnGx7/28pJLjInijUeyR7l7XPY="}]},"_npmUser":{"name":"binodev","email":"padonougabin10@gmail.com"},"directories":{},"maintainers":[{"name":"binodev","email":"padonougabin10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/n8n-nodes-discord-trigger_0.1.3_1742233838224_0.7277289393146769"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-17T15:58:27.220Z","modified":"2025-03-17T17:50:38.578Z","0.1.0":"2025-03-17T15:58:27.514Z","0.1.1":"2025-03-17T17:37:26.190Z","0.1.3":"2025-03-17T17:50:38.438Z"},"bugs":{"url":"https://github.com/binodev/n8n-nodes-discord-trigger/issues"},"author":{"name":"Gabin PADONOU","email":"padonougabin10@gmail.com"},"license":"MIT","homepage":"https://n8n.io","keywords":["n8n","n8n-node","n8n-community-node","discord","webhook","trigger","bot"],"repository":{"type":"git","url":"git+https://github.com/binodev/n8n-nodes-discord-trigger.git"},"description":"n8n node to trigger workflows based on Discord messages","maintainers":[{"name":"binodev","email":"padonougabin10@gmail.com"}],"readme":"# @binodev/n8n-nodes-discord-trigger\n\nThis is an n8n community node that provides a trigger for Discord messages using OAuth2 authentication. It allows you to securely listen for new messages from Discord bots in specific channels and trigger n8n workflows based on these messages.\n\n[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.\n\n## Features\n\n- OAuth2 authentication with Discord\n- Listen for new messages in specific Discord channels\n- Filter messages by bot (optional)\n- Extract message content, author information, and attachments\n- Trigger n8n workflows based on Discord messages\n\n## Installation\n\n### npm\n```bash\nnpm install @binodev/n8n-nodes-discord-trigger\n```\n\n### n8n\nIn your n8n installation:\n1. Go to **Settings > Community Nodes**\n2. Select **Install**\n3. Enter `@binodev/n8n-nodes-discord-trigger` in **Enter npm package name**\n4. Agree to the risks of using community nodes\n5. Select **Install**\n\n## Setup\n\n### Discord Application Setup\n\n1. Go to the [Discord Developer Portal](https://discord.com/developers/applications)\n2. Create a new application\n3. Set up a bot for your application\n4. Enable the necessary intents (SERVER MEMBERS INTENT, MESSAGE CONTENT INTENT)\n5. Configure OAuth2 with the appropriate redirect URL\n6. Invite the bot to your server\n\nFor detailed instructions, see the [usage guide](docs/usage.md).\n\n## Node Configuration\n\n### Discord Trigger\n\nThis node triggers a workflow when a new message is received in a specified Discord channel from a bot.\n\n#### Configuration Options:\n\n- **Event**: The event to listen for (currently only \"Message Created\" is supported)\n- **Channel ID**: The ID of the Discord channel to monitor\n- **Only Messages from Bot**: Whether to only trigger on messages from bots\n- **Bot ID**: (Optional) The specific bot ID to listen for\n\n## Credentials\n\n### Discord OAuth2 API\n\nTo use this node, you need to set up Discord OAuth2 credentials:\n\n- **Client ID**: Your Discord application's client ID\n- **Client Secret**: Your Discord application's client secret\n- **Scope**: `bot identify`\n- **Auth URI Query Parameters**: `response_type=code`\n- **Authentication**: Body\n\n## Development\n\n### Build\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n```\n\n### Test\n\n```bash\n# Run the test script\nnode scripts/test.js\n```\n\n### Lint\n\n```bash\n# Lint the code\nnpm run lint\n```\n\n### Format\n\n```bash\n# Format the code\nnpm run format\n```\n\n## Examples\n\nCheck the [examples](examples/) directory for sample workflows.\n\n## Compatibility\n\nThis node has been developed and tested with n8n version 0.148.0\n\n## Resources\n\n* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)\n* [Discord Developer Documentation](https://discord.com/developers/docs)\n\n## License\n\n[MIT](LICENSE) ","readmeFilename":"README.md"}