{"id":20999780,"url":"https://github.com/folody-team/discordjs-system-handler","last_synced_at":"2026-04-12T02:35:07.378Z","repository":{"id":65522993,"uuid":"487236834","full_name":"Folody-Team/DiscordJs-System-Handler","owner":"Folody-Team","description":"A javascript library support System Files Handler Commands.","archived":false,"fork":false,"pushed_at":"2022-05-05T05:08:44.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T08:41:41.628Z","etag":null,"topics":["discord-js","discordjs","javascript","javascript-library","library"],"latest_commit_sha":null,"homepage":"","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/Folody-Team.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}},"created_at":"2022-04-30T09:35:46.000Z","updated_at":"2022-05-04T12:58:41.000Z","dependencies_parsed_at":"2023-01-27T06:01:29.400Z","dependency_job_id":null,"html_url":"https://github.com/Folody-Team/DiscordJs-System-Handler","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/Folody-Team%2FDiscordJs-System-Handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Folody-Team%2FDiscordJs-System-Handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Folody-Team%2FDiscordJs-System-Handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Folody-Team%2FDiscordJs-System-Handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Folody-Team","download_url":"https://codeload.github.com/Folody-Team/DiscordJs-System-Handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243417317,"owners_count":20287611,"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":["discord-js","discordjs","javascript","javascript-library","library"],"created_at":"2024-11-19T08:08:16.653Z","updated_at":"2025-12-29T02:57:37.287Z","avatar_url":"https://github.com/Folody-Team.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiscordJS System Handler\n\n A javascript library support System Files Handler Commands.\n\n## What is System Files Handler Commands ?\n\n\u003e ### System Files Handler Commands\n\u003e \n\u003e **Info:** As an alternative to [**Commands Handler**](https://discordjs.guide/creating-your-bot/command-handling.html), it reduces the amount of code and does not need `module.exports` and optimizes your code. \n\n## Example\n\n```js\nconst { FileSystem } = require('discordjs-system-handler');\nconst { Client, Intents } = require('discord.js');\n\nconst client = new Client({intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_MESSAGES]});\n\n\nFileSystem.setup('commands', client, '!', function() {\n    client.on('ready', () =\u003e {\n        console.log('Ready!');\n    })\n    client.login(\"TOKEN\");\n});\n```\n\n`FileSystem.setup(dirname, client, prefix, function)`\n\n| Params   | Type     |\n| -------- | -------- |\n| dirname  | string   |\n| client   | any      |\n| prefix   | string   |\n| function | function |\n\n##### In example\n\nYou can see `commands` The library will read the directory containing the command files and correspond to the command name. That is, the user types the command name, the program will get the command name to read the command file contained in that directory. If there is none, it will be `NOT FOUND` \n\n### NOTE: command name = file name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolody-team%2Fdiscordjs-system-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolody-team%2Fdiscordjs-system-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolody-team%2Fdiscordjs-system-handler/lists"}