{"id":24549337,"url":"https://github.com/ayocord-js/ayocord","last_synced_at":"2025-04-15T20:14:18.850Z","repository":{"id":269753085,"uuid":"907119754","full_name":"ayocord-js/ayocord","owner":"ayocord-js","description":"Discord.js library with decorators","archived":false,"fork":false,"pushed_at":"2025-03-30T19:08:21.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T20:14:11.787Z","etag":null,"topics":["decorators","discord","discord-js","framework","library","typescript"],"latest_commit_sha":null,"homepage":"https://www.ayocord.tech/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayocord-js.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-22T21:29:52.000Z","updated_at":"2025-03-30T19:08:25.000Z","dependencies_parsed_at":"2025-01-31T17:20:44.670Z","dependency_job_id":"e0539384-34df-4b28-ac93-064ecb287fa6","html_url":"https://github.com/ayocord-js/ayocord","commit_stats":null,"previous_names":["ayomits/ayocord","ayocord-js/ayocord"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayocord-js%2Fayocord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayocord-js%2Fayocord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayocord-js%2Fayocord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayocord-js%2Fayocord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayocord-js","download_url":"https://codeload.github.com/ayocord-js/ayocord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145419,"owners_count":21219966,"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":["decorators","discord","discord-js","framework","library","typescript"],"created_at":"2025-01-23T00:15:13.420Z","updated_at":"2025-04-15T20:14:18.832Z","avatar_url":"https://github.com/ayocord-js.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.ayocord.tech/\"\u003e\n    \u003cimg src=\"https://imgur.com/mCLyhj2.png\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n# Introduction\n\nAyocord is a discord.js typescript framework based on decorators\n\n## Documenation\n\nCheck our \u003ca href=\"https://www.ayocord.tech/docs/\"\u003edocumentation\u003c/a\u003e\n\n## Installation\n\n\u003e npm\n\n```bash\nnpm i ayocord\n```\n\n\u003e yarn\n\n```bash\nyarn add ayocord\n```\n\n## Little bit history?\n\nI always write handlers for my bots and it was really boring and sometimes hard \u003cbr\u003e\nFor each commands you **must** create files \u003cbr\u003e\nIn python discord libraries we're using decorators for solving this problem \u003cbr\u003e\nOne class = one module (cog in python sleng), however I hate python and love TypeScript ecosystem but this way for creating discord bots I like and I decided to create this framework \u003cbr\u003e\n\n## Features\n\n- **Decorator Based Syntax** - use TypeScript decorators and class based way to write your discord bot\n  - Interactions - use decorators to interact with discord API in one class\n    - Event\n    - Slash commands\n    - Text commands\n    - Autocomplete\n  - **Views** - using for create your rows with callback!\n    - Button\n    - Select (Role, Channel, User, String)\n    - Modal\n  - **Guards** - check permissions before user use your command\n    - Guard\n  - **Jobs** - you need to check use subcribes every 20 seconds? This decorators can solve your problem\n    - Job\n- **Utils** - some useful utils for your discord bot (not rich and not poor)\n  - Snowflake parser\n  - Discohook parser\n  - CustomId parser\n- **Multi tokens** - allow you launch few bots simultaneously\n\n## Realesed Features\n\n### Launcher\n\n\u003e Internal feature\n\n- [x] DiscordClient\n- [x] DiscordCollector\n- [x] DiscordFactory\n\n### Handlers\n\n\u003e Internal feature\n\n- [x] EventHandler\n- [x] InteractionHandler\n- [x] TextCommandHandler\n\n### Interaction Decorators\n\n\u003e Use this decorators for interact with discord API \u003cbr\u003e\n\u003e There are two ways to use this decorators\n\n**Recommended**\n\n- Methods\n\n  - [x] Event\n  - [x] Component\n  - [x] SlashCommand\n  - [x] TextCommand\n  - [x] AutoComplete\n  - [x] SubCommand\n\n### Views\n\n\u003e Use this decorators to creating action rows with callback\n\n- [x] Views\n- [x] Button\n- [x] StringSelect\n- [x] RoleSelect\n- [x] ChannelSelect\n\n### Guards\n\n\u003e Use this decorator for checking permissions or another stuff before user interact with command or something else\n\n- Decorators\n  - [x] Guard\n- Interfaces\n  - [x] CanUse\n\n### Job\n\n\u003e Use this decorator to repeat action every duration\n\n- Decorators\n  - [ ] Job\n- Cache\n  - [ ] Set jobs\n  - [ ] Cancel jobs\n\n### Modules\n\n- Decorators\n  - [x] Module\n- Lifecycle\n  - [x] onEnabled\n  - [x] onDisable\n- Module util\n  - [x] moduleEnable\n  - [x] moduleDisable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayocord-js%2Fayocord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayocord-js%2Fayocord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayocord-js%2Fayocord/lists"}