{"_id":"@andrewcturing/discord_bot","name":"@andrewcturing/discord_bot","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.3":{"name":"@andrewcturing/discord_bot","version":"0.3.3","description":"Pipedream Discord_bot Components","main":"discord_bot.app.js","keywords":["pipedream","discord_bot"],"homepage":"https://pipedream.com/apps/discord_bot","author":{"name":"Pipedream","email":"support@pipedream.com","url":"https://pipedream.com/"},"license":"MIT","dependencies":{"@pipedreamhq/platform":"^0.8.1"},"gitHead":"e12480b94cc03bed4808ebc6b13e7fdb3a1ba535","publishConfig":{"access":"public"},"_id":"@andrewcturing/discord_bot@0.3.3","_integrity":"sha512-D9RbspVRtzfiPtGJdqHJsr8f7iDWD58WUVPhDPkUTWqkmzkjwRqKVd/VGvX5/dyLWP5gM8F0vvn5UEC4f6CU4Q==","_resolved":"/private/var/folders/ln/bmzl_cmx3yd_vyqtcy0dqhh00000gn/T/34d06118b7171df67abdf382df5fd61f/andrewcturing-discord_bot-0.3.3.tgz","_from":"file:andrewcturing-discord_bot-0.3.3.tgz","_nodeVersion":"17.8.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-D9RbspVRtzfiPtGJdqHJsr8f7iDWD58WUVPhDPkUTWqkmzkjwRqKVd/VGvX5/dyLWP5gM8F0vvn5UEC4f6CU4Q==","shasum":"fb0a15f31514e388534689f1e5f213b30821b035","tarball":"https://registry.npmjs.org/@andrewcturing/discord_bot/-/discord_bot-0.3.3.tgz","fileCount":30,"unpackedSize":62419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5dUxgz4gblTFGGmbWxuzoAIyXd6n1Ni/SDaBq5H1tyQIhAMeXLvJUUzW+o/U+TxDTUXGbugi7CVs0CUyhwbdddSYC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEkbZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4mg/+Mdh7Y8h3rLdX/ceRyMG9G57T+ZePRrxyElWqIS7p4HUSxGdU\r\nHRvT7QmkC9vaoIdXO7YenH+M0lP+MHl4GFI6MaZ5yI/nj+e7RrvKtyXXSNVG\r\nVqk0pirjolTqp4s9Jc3fWat9yZVtr/pAUBy7Uq37W0mPYlaWODRDJn9kwXdz\r\nNIUnca6pxx3PnctGVqMd7fQgF/D3O+UMuk8EnB516ghtpZlpQA9WX8fI8yOH\r\ndoR7CKKHurZa5C0rNXPgDIUoGSMOXc+qFNmz6/mFmOK1yOif893hOPSsJ3+z\r\n1sJipxYKsmqQSKH+Tp1S6UWeqaD16bgl14rlS2uunEGhHp51sIxwzoPM2sCF\r\n0SZiu1CquXWrzlJRBAXisR3krBeOGpqT74GT7OOe0+v7ZmtC78koX4M0TXK3\r\nybHV7VZ3dCBk+TLZkGSm4B6Q+Y0lxPdpIyZLwZG/dubvrbo5xHQw0uZC4mOw\r\nxMqHHm7YuVay2srXefInqvjCMFCcIY9xYzYP5zKGo9AKV52Os/NJtOPYmpHR\r\nyK6ae57Rk4nSyUmF9dgKaykXxd12g5PcS7tJFkUimlfeX1iKQ3NnzQh0ZTqZ\r\nsuIvFn5JeOpBBR/vTsaE8EJxCa5mxVr9EuTrk+rJgswTq2tsDDzy31KL44+m\r\nUzcsvdaTaUDEKQGOmsgjIuDeSUrSyTlDR7s=\r\n=PsK2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrewcturing","email":"andrew.c@turing.com"},"directories":{},"maintainers":[{"name":"andrewcturing","email":"andrew.c@turing.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discord_bot_0.3.3_1662142169545_0.994163219963756"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-02T18:09:29.464Z","0.3.3":"2022-09-02T18:09:29.798Z","modified":"2022-09-02T18:09:29.955Z"},"maintainers":[{"name":"andrewcturing","email":"andrew.c@turing.com"}],"description":"Pipedream Discord_bot Components","homepage":"https://pipedream.com/apps/discord_bot","keywords":["pipedream","discord_bot"],"author":{"name":"Pipedream","email":"support@pipedream.com","url":"https://pipedream.com/"},"license":"MIT","readme":"# Overview\n \nThe Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use [Pipedream workflows](/workflows/) to perform common Discord [actions](#workflow-actions), or [write your own code](/code/) against the Discord API.\n\n## Getting Started\n\nTo use the Discord Bot integration, you'll need to create a Discord bot and add that bot to your server(s). If you haven't created a Discord bot, [see these instructions](https://github.com/SinisterRectus/Discordia/wiki/Setting-up-a-Discord-application) or [watch this video](https://docs.pipedream.com/apps/discord/#discord-bot).\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/IaKs8oA1-5g\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\nNot sure if you need to use the Discord or the Discord Bot integration for your workflow? Here's are the general similarities and differences:\n\nDiscord and Discord Bot actions and triggers _can_ both:\n\n* Listen to events on Discord channels, guilds, etc.\n* Perform actions like sending messages, managing channels, and members\n\nHowever the Discord integration will perform actions with the official Pipedream Discord bot.\n\nUsing the Discord Bot integration will use a custom bot instead, with it's own name and photo.\n\n### New Messages in Channel\n\n[**Create this source here**](https://pipedream.com/sources?action=create&key=&app=discord_bot).\n\nThis event source emits events each time a new message is delivered to a Discord channel. By default, it emits an event for every message.\n\nWhen you create this source, you'll be prompted to connect your Discord Bot token (press Connect Account and then New to add your token). The source will use that token to list the guilds / channels that bot has access to, asking you to select one:\n\n<img alt=\"How to use Discord source GIF\" src=\"/images/discord/2020-06-09 23.20.56.gif\" />\n\nWe use Discord's API to poll for new messages in this channel **once a minute, by default**, but you can increase this to run up to once every 15 seconds, if you'd like.\n\nThe first time this source runs, it fetches up to the last 100 messages sent to your channel and stores the ID of the last message delivered to that channel. The next time the source runs, it polls your channel for messages sent after that ID.\n\nBy default, this event source is configured to emit an event for every new message in the channel. For example, if 5 messages are sent to the channel in one minute, the source will emit 5 events, one for each message. You can set the source to batch the events the source collects and emit them as a single event by setting the **Emit messages as a single event** parameter to `true`.\n\n<img alt=\"Emit messages as a single event\" src=\"/images/discord/emit-messages-as-single-event.png\" />\n\nIn this example, the source would emit a single event: an array of 5 messages.\n","readmeFilename":"README.md"}