{"id":14983361,"url":"https://github.com/bracketbyte/djs-handler","last_synced_at":"2025-10-29T22:30:29.120Z","repository":{"id":45330445,"uuid":"333835837","full_name":"BracketByte/DJS-Handler","owner":"BracketByte","description":"Simple and easy to use Discord.js command and event handler, use this template for your next bot!","archived":false,"fork":false,"pushed_at":"2021-12-27T20:00:52.000Z","size":42,"stargazers_count":21,"open_issues_count":2,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-28T09:03:15.126Z","etag":null,"topics":["bot","command-handler","discord-bot","discord-command","discord-js","djs","event-handler"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/BracketByte.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":"2021-01-28T17:37:23.000Z","updated_at":"2024-06-28T19:49:25.000Z","dependencies_parsed_at":"2022-08-28T00:12:20.846Z","dependency_job_id":null,"html_url":"https://github.com/BracketByte/DJS-Handler","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BracketByte%2FDJS-Handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BracketByte%2FDJS-Handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BracketByte%2FDJS-Handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BracketByte%2FDJS-Handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BracketByte","download_url":"https://codeload.github.com/BracketByte/DJS-Handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876292,"owners_count":16554740,"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":["bot","command-handler","discord-bot","discord-command","discord-js","djs","event-handler"],"created_at":"2024-09-24T14:07:06.797Z","updated_at":"2025-10-29T22:30:28.821Z","avatar_url":"https://github.com/BracketByte.png","language":"JavaScript","readme":"# Command and Event Handler For Discord.js!\n\nSimple and easy to use command and event handler\nwith useful features.\n\n## INFO\n\n**!** The command handler used in this repository is based on the official discord.js command handler\n\n**!** Make sure that you have Node.js and NPM installed and up to to date on your system\n\n## HOW DO I SETUP MY BOT?\n\n**!** If you'r hosting the bot on your loca machine create a new file in the root of the directory of the project called `.env` and write in it `TOKEN=your_token_goes_here` if not, add the token to your bot environtment variables with the name of `TOKEN`\n\n**!** Set your prefix in `utils/config.json`\n\n**!** Run `npm install` in your terminal\n\n## HOW DO I START THE BOT?\n\n**!** If it's not your first time running this bot, run `npm run start` in your terminal\n\n**!** Use `npm run LocalStart` in your terminal if you'r running the bot on a local machine to make use of the .env file\n\n## HOW TO ADD NEW COMMANDS?\n\n**1** Create a new .js file in the commands folder with the name of your command.\n\n**2** Populate the file with the code reprezented here:\n\n```js\nmodule.exports = {\n  name: \"commanad name\",\n  description: \"description of your command\",\n  aliases: [\"aleas1\", \"alias2\"],\n  usage: \"[argument1] [argument2]\",\n  guildOnly: false, //true if only used in server\n  args: false, //true if the command cant run without arguments\n  permissions: {\n    bot: [], //permissions that the bot requires for the command\n    user: [], //permissions that the user requires for the command\n  },\n  execute: async (message, args, client) =\u003e {\n    //code for the command goes here\n  },\n};\n```\n\n**3** start your bot and see if it works!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbracketbyte%2Fdjs-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbracketbyte%2Fdjs-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbracketbyte%2Fdjs-handler/lists"}