{"id":16621572,"url":"https://github.com/pauldb09/eris-utils","last_synced_at":"2025-08-22T11:36:20.948Z","repository":{"id":45226814,"uuid":"513235326","full_name":"pauldb09/eris-utils","owner":"pauldb09","description":"Adds collectors, sweepers and some other things to eris","archived":false,"fork":false,"pushed_at":"2022-09-16T16:07:46.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T11:58:35.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pauldb09.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}},"created_at":"2022-07-12T17:33:48.000Z","updated_at":"2022-07-13T15:16:44.000Z","dependencies_parsed_at":"2022-09-04T19:10:35.383Z","dependency_job_id":null,"html_url":"https://github.com/pauldb09/eris-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldb09%2Feris-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldb09%2Feris-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldb09%2Feris-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauldb09%2Feris-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauldb09","download_url":"https://codeload.github.com/pauldb09/eris-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242997470,"owners_count":20219152,"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":[],"created_at":"2024-10-12T02:47:42.764Z","updated_at":"2025-03-11T08:23:36.017Z","avatar_url":"https://github.com/pauldb09.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eris-utils\n\nAdds collectors, sweepers and some other things to eris\n\n**Getting Started**\n\nStart by downloading the package from npm using the command line:\n\n```\nnpm install eris-utilities@latest\n```\n\nThen you can use it on your own bot, here it a little example with javascript:\n\n**Create Message collectors**\n\n```js\n\nconst Eris = require(\"eris\")\nconst { CollectorManager, SweeperManager, extendClient } = require(\"eris-utilities\")\n\nconst client = new Eris(\"BOT_TOKEN\",{\n    intents: [\"guilds\"]\n});\n\n// extendClient(client) OR:\nclient.collectors = new CollectorManager(client);\n\nclient.on(\"interactionCreate\", interaction=\u003e{\n    if(interaction.data.name === \"ping\"){\n        interaction.createMessage(\"Answer with pong to interact!\")\n        const collector = client.collectors.createMessageCollector({\n             channelId: interaction.channel.id,\n             userId: interaction.member.id,\n             time: 6000,\n             filter: (msg) =\u003e msg.content === \"pong\",\n        })\n\n        collector.on(\"response\", msg =\u003e{\n\n        })\n\n        collector.on(\"end\", msg =\u003e{\n\n        })\n    }\n})\n\nclient.connect()\n```\n\n**Sweepers**\n\n```js\n\nconst Eris = require(\"eris\")\nconst { SweeperManager } = require(\"eris-utils\")\n\nconst client = new Eris(\"YOUR_TOKEN\", {\n    intents: [\"guildMessages\"]\n});\n\nclient.collectors = new CollectorManager(client);\nclient.sweepers = new SweeperManager(client, {\n    members: {\n        delay: 1000*60*60,\n        // excludeClient: true,\n        // excluteInVoice: true,\n        // If filter is passed, excluteInVoice and excludeClient will both be ignored\n\n        // Just an example\n        filter: (m)=\u003e m.guild.id !== \"XX\";\n    },\n    channels: {\n        delay: 1000*60*60;\n        filter: (m) =\u003e m;\n    }\n})\n\nclient.connect()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldb09%2Feris-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauldb09%2Feris-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldb09%2Feris-utils/lists"}