{"id":21721344,"url":"https://github.com/rajkumar-justcoder/djs-bot-template","last_synced_at":"2026-02-12T22:30:56.164Z","repository":{"id":178832916,"uuid":"552465910","full_name":"Rajkumar-justcoder/djs-Bot-template","owner":"Rajkumar-justcoder","description":"A Discord bot template based on discordjs@latest","archived":false,"fork":false,"pushed_at":"2023-05-30T08:42:21.000Z","size":115,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T14:55:41.796Z","etag":null,"topics":["bot","discord","discord-template-bot","discordjs-bot","discordjs-v14"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Rajkumar-justcoder.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-10-16T16:55:04.000Z","updated_at":"2025-08-13T08:22:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a693f14-21c8-4555-b24d-538a60213429","html_url":"https://github.com/Rajkumar-justcoder/djs-Bot-template","commit_stats":null,"previous_names":["rajkumar-justcoder/djs-bot-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Rajkumar-justcoder/djs-Bot-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajkumar-justcoder%2Fdjs-Bot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajkumar-justcoder%2Fdjs-Bot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajkumar-justcoder%2Fdjs-Bot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajkumar-justcoder%2Fdjs-Bot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rajkumar-justcoder","download_url":"https://codeload.github.com/Rajkumar-justcoder/djs-Bot-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rajkumar-justcoder%2Fdjs-Bot-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29383864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","discord","discord-template-bot","discordjs-bot","discordjs-v14"],"created_at":"2024-11-26T02:15:59.452Z","updated_at":"2026-02-12T22:30:56.150Z","avatar_url":"https://github.com/Rajkumar-justcoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" # DJS BOT TEMPLATE\n\nA Discord bot template based on discordjs@latest.\n\n### About\n- 🏁 A Stater Discord bot template based on JavaScript.\n- 🏠 Currently by default its Global Slash ( `/` ) command.\n\n## Run locally \n\n1. Clone the repository and run the following to install the dependencies ( use any package manager you like ):\n    ```bash\n    npm install\n    ```\n\n2. Create `.env` file in the root directory and add the discord token created at **Discord Dev Portal** in this format:\n\n    ```bash\n    TOKEN=Your bot Token here\n    MONGODBURL= mongo db url\n    ```\n  \n\n\u003e **NOTE**\n\u003e - if u dont want any command to be use in dm then set it to false by (`slashcmdbuilder.setDMPermission(false)`).\n\u003e\n\u003e -  If no any private or mongodburl then leave it empty  in .env file \n\u003e - Mongo db URL is optional. If you don't need it, then remove code as well as the `import` from `src/events/client/ready.js` file. Then uninstall the mongoose package.\n \n\u003e\n\u003e - If you want the code to be kept for a future mongo db connection then let it be there for later use and instead, remove the imports in that file and uninstall packages.\n\n\n3. Start your bot:\n    ```bash\n    node .\n    ```\n\n## Screenshots\n\n![A Console log of commands loaded](/screenshorts/console.png)\n\nIf any default errors found while registering commands, it will show here: \n![A Erros log if any any default error found ](/screenshorts/logwitherrors.png)\n\n![Sample ping command](/screenshorts/ping.png)\n\n\n## How to add Commands\n- See `how to add commands.md` to add commands \n- See `how to add events.md` to add events\n\n\n## What is Discord.js?\n- Discord.js is a powerful Node.js  module that allows you to interact with the Discord API  very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.\n- Usability, consistency, and performance are key focuses of discord.js, and it also has nearly 100% coverage of the Discord API. It receives new Discord features shortly after they arrive in the API.\n- Discord.js definition credit : https://discord.js.org/#/\n\n## Discord.js links for reference\n- https://discord.js.org/#/\n- https://discord.com/developers/docs/intro\n- https://discordjs.guide/#before-you-begin\n- https://www.npmjs.com/package/discord.js\n- https://github.com/discordjs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajkumar-justcoder%2Fdjs-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajkumar-justcoder%2Fdjs-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajkumar-justcoder%2Fdjs-bot-template/lists"}