{"id":16623089,"url":"https://github.com/devvali/djs-template","last_synced_at":"2025-08-21T05:34:38.757Z","repository":{"id":181417634,"uuid":"590152811","full_name":"DevVali/djs-template","owner":"DevVali","description":"Simple template for your discord.js bot with discord.js Guide explanations.","archived":false,"fork":false,"pushed_at":"2023-12-21T13:49:27.000Z","size":70,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T21:36:35.474Z","etag":null,"topics":["discord","discord-bot","discord-js"],"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/DevVali.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,"zenodo":null}},"created_at":"2023-01-17T19:13:56.000Z","updated_at":"2024-01-11T17:19:26.000Z","dependencies_parsed_at":"2023-12-21T16:06:27.369Z","dependency_job_id":null,"html_url":"https://github.com/DevVali/djs-template","commit_stats":null,"previous_names":["devvali/djs14-template","devvali/djs-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/DevVali/djs-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevVali%2Fdjs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevVali%2Fdjs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevVali%2Fdjs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevVali%2Fdjs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevVali","download_url":"https://codeload.github.com/DevVali/djs-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevVali%2Fdjs-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271430899,"owners_count":24758419,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-bot","discord-js"],"created_at":"2024-10-12T03:22:28.109Z","updated_at":"2025-08-21T05:34:38.737Z","avatar_url":"https://github.com/DevVali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord.js v14 template\n\n\u003e A simple template for your [discord.js](https://discord.js.org/) bot with [discord.js Guide](https://discordjs.guide/) explanations.\n\n## Features\n\n+ Slash commands support\n+ Status and activity configuration\n+ Command handler\n+ Event handler\n+ Components handler\n+ Working with databases ([sequelize](https://sequelize.org/), [keyv](https://www.npmjs.com/package/keyv))\n+ Working with APIs ([undici](https://www.npmjs.com/package/undici))\n+ Logging interactions and errors\n+ Using modern ES6 syntax\n\n## Installation\n\nTo install this repository properly, run this in your command-line interface.\n\n```\ngit clone https://github.com/DevVali/djs14-template.git\n```\n\nAfter cloning the repository, you can install all required packages.\n\n```\nnpm i\n```\n\n\u003e Tip: If you want to install only the packages of your choice, continue reading.\n\n### Packages\n\nAll packages are installed by default, but you may not need some packages (e.g. you will not be working with databases).\n\n#### discord.js \n\nA package to interact with the Discord API. Required to run the bot properly.\n\n```\nnpm i discord.js\n```\n\n#### keyv\n\nSimple key-value storage that allows you to work with databases.\n\n```\nnpm i keyv\n```\n\nAdditionally, install @keyv/sqlite (we used SQLite in this template).\n\n```\nnpm i @keyv/sqlite\n```\n\n#### eslint\n\nESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. \n\n```\nnpm i --save-dev eslint\n```\n\nAdditionally, install the appropriate plugin(s) for your editor of choice.\n+ [ESLint for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n+ [ESLint for Sublime Text](https://packagecontrol.io/packages/ESLint)\n\n#### sequelize\n\nSequelize is an object-relational-mapper that allows you to work with databases.\n\n```\nnpm i sequelize sqlite3\n```\n\n#### undici\n\nAn excellent library for making HTTP requests.\n\n```\nnpm i undici\n```\n\n### Editor plugins\n\n+ [Prettier for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)\n+ [Recommended theme for your VS Code editor](https://marketplace.visualstudio.com/items?itemName=ahmadawais.shades-of-purple)\n\n## Jump to\n\n\u003e Examples and explanations from the discord.js Guide.\n\n### Commands\n\n+ [Buttons](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/button.js)\n+ [Select menus](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/select.js)\n+ [Modals](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/question.js)\n+ [Context Menus](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/userid.js)\n+ [How do I check the bot's ping?](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/ping.js)\n+ [Threads and Embeds](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/thread.js)\n+ [Reactions, Permissions, Webhooks and Storing data with Keyv](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/uwu.js)\n+ [Storing data with Sequelize](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/show-preference.js)\n+ [Using a REST API](https://github.com/DevVali/djs14-template/blob/7357cc3dadfcca6e011d43f6cc04bd56ea40a20a/commands/neko.js)\n\n### Components \n\n+ [Buttons](https://github.com/DevVali/djs14-template/blob/4826e4e4f8a36adc33cb5b085e5818639457dab7/components/button.js)\n+ [Select menus and Storing data with Sequelize](https://github.com/DevVali/djs14-template/blob/4826e4e4f8a36adc33cb5b085e5818639457dab7/components/preference.js)\n+ [Modals](https://github.com/DevVali/djs14-template/blob/4826e4e4f8a36adc33cb5b085e5818639457dab7/components/question-modal.js)\n\n## Starting the bot\n\n\u003e Tip: Don't forget to edit the `config.json` file with your [bot's configuration](https://discordjs.guide/preparations/setting-up-a-bot-application.html). \n\nBefore getting into the process of starting your discord.js bot, you will have to register your commands to Discord.\n\n```\nnode deploy-commands.js\n```\n\nRefresh your Discord client and if you see your bot's commands, you're good to go!\n\nLet's start your bot.\n\n```\nnode index.js\n```\n\nIf you see \"Ready!\" after a few seconds, congratulations on starting your discord.js bot. 🎉 \n\n### Initializing database (sequelize)\n\n```\nnode dbInit.sequelize.js\n```\n\n## Contributing \n\nThis project was made as a help for programmers learning discord.js on providing them some examples how discord.js code should look like. If you found that we are missing a resource, feel free to add one by yourself and open a PR. 💖 If you decide to do so, don't forget to use the recommended editor plugins.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvali%2Fdjs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevvali%2Fdjs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvali%2Fdjs-template/lists"}