{"id":16623635,"url":"https://github.com/catplvsplus/eris-collectors","last_synced_at":"2026-02-14T14:06:52.980Z","repository":{"id":65561088,"uuid":"526896790","full_name":"catplvsplus/eris-collectors","owner":"catplvsplus","description":"Collectors for eris based bots","archived":false,"fork":false,"pushed_at":"2024-10-19T12:05:15.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:53:24.762Z","etag":null,"topics":["collector","eris"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catplvsplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-20T10:40:32.000Z","updated_at":"2024-10-19T12:05:19.000Z","dependencies_parsed_at":"2024-11-17T05:36:12.952Z","dependency_job_id":"8984c1ce-4ced-478d-b892-fb3e1f84f76f","html_url":"https://github.com/catplvsplus/eris-collectors","commit_stats":null,"previous_names":["catplvsplus/eris-collectors","notghex/eris-collectors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Feris-collectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Feris-collectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Feris-collectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Feris-collectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catplvsplus","download_url":"https://codeload.github.com/catplvsplus/eris-collectors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535032,"owners_count":21446503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collector","eris"],"created_at":"2024-10-12T03:24:25.248Z","updated_at":"2026-02-14T14:06:47.957Z","avatar_url":"https://github.com/catplvsplus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eris Collectors\n\nCreate interaction, message, and reaction collectors easily with **eris-collectors**\n\n- [Collector Usage](#collector-usage)\n- [Awaiter Usage](#awaiter-usage)\n\n```\nnpm i eris-collectors\nyarn add eris-collectors\npnpm add eris-collectors\n```\n\n\n# Collector Usage\n\n```js\nconst { MessageCollector } = require('eris-collectors');\n\nconst collector = new MessageCollector({\n    client: bot,                            // [Required] Your bot client\n    channel: channel,                       // [Required] Any text channel\n    time: 1000 * 60,                        // [Optional] Collector timeout in milliseconds\n    max: 10,                                // [Optional] Max collected messages\n    filter: message =\u003e !message.author.bot, // [Optional] Custom collector filter\n});\n\ncollector.on('collect', message =\u003e {}); // Emitted when the collector collects a message\ncollector.on('end', reason =\u003e {});      // Emitted when the collector stopped\n\ncollector.stop();                       // Stop collecting messages\n```\n\n```js\nconst { ReactionCollector } = require('eris-collectors');\n\nconst collector = new ReactionCollector({\n    client: bot,                            // [Required] Your bot client\n    message: message,                       // [Required] A message to collect reactions from\n    time: 1000 * 60,                        // [Optional] Collector timeout in milliseconds\n    max: 10,                                // [Optional] Max collected reactions\n    maxEmojis: 10,                          // [Optional] Max collected emoji\n    maxReactors: 10,                        // [Optional] Max reactors\n    filter: reaction =\u003e true,               // [Optional] custom collector filter\n});\n\ncollector.on('collect', reaction =\u003e {}); // Emitted when the collector collects a reaction\ncollector.on('end', reason =\u003e {});       // Emitted when the collector stopped\n\ncollector.stop();                        // Stop collecting reactions\n```\n\n```js\nconst { InteractionCollector } = require('eris-collectors');\nconst { Constants } = require('eris');\n\nconst collector = new InteractionCollector({\n    client: bot,                                                    // [Required] Your bot client\n    message: message,                                               // [Optional] A message to collect interactions from\n    channel: channel,                                               // [Optional] Collects interactions in a channel\n    guild: guild,                                                   // [Optional] Collects interactions from a guild\n    interactionType: Constants.InteractionTypes.MESSAGE_COMPONENT,  // [Optional] Sets the interaction type to collect\n    maxUsers: maxUsers,                                             // [Optional] Set max users to interact to this collector\n    time: 1000 * 60,                                                // [Optional] Collector timeout in milliseconds\n    max: 10,                                                        // [Optional] Max collected reactions\n    filter: interaction =\u003e true,                                    // [Optional] custom collector filter\n});\n\ncollector.on('collect', interaction =\u003e {}); // Emitted when the collector collects an interaction\ncollector.on('end', reason =\u003e {});          // Emitted when the collector stopped\n\ncollector.stop();                           // Stop collecting interactions\n```\n\n## Awaiter Usage\n\n```js\nconst { awaitMessage } = require('eris-collectors');\n\n// Single message\nconst message = await awaitMessage({ client, channel });\n\n// Multiple messages\nconst messages = await awaitMessage({ client, channel, max: 0 });\n```\n\n```js\nconst { awaitInteraction } = require('eris-collectors');\n\n// Single interaction\nconst interaction = await awaitInteraction({ client, channel });\n\n// Multiple interactions\nconst interactions = await awaitInteraction({ client, channel, max: 0 });\n```\n\n```js\nconst { awaitReaction } = require('eris-collectors');\n\n// Single reaction\nconst reaction = await awaitReaction({ client, channel });\n\n// Multiple reactions\nconst reactions = await awaitReaction({ client, channel, max: 0 });\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatplvsplus%2Feris-collectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatplvsplus%2Feris-collectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatplvsplus%2Feris-collectors/lists"}