{"id":18311417,"url":"https://github.com/copyarchive/discordjs-v13-template","last_synced_at":"2025-04-05T18:31:48.863Z","repository":{"id":151112973,"uuid":"459983626","full_name":"CopyArchive/DiscordJS-V13-Template","owner":"CopyArchive","description":"[Legacy] This repo is outdated and discontinued because of DJS v14","archived":true,"fork":false,"pushed_at":"2022-03-19T12:05:05.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T06:16:58.797Z","etag":null,"topics":["bot","discord","discord-bot","discord-js","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/CopyArchive.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":"2022-02-16T11:55:03.000Z","updated_at":"2023-10-06T14:33:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"244a4521-243d-4176-ac60-df2f3be8cf65","html_url":"https://github.com/CopyArchive/DiscordJS-V13-Template","commit_stats":null,"previous_names":["copyarchive/discordjs-v13-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CopyArchive%2FDiscordJS-V13-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CopyArchive%2FDiscordJS-V13-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CopyArchive%2FDiscordJS-V13-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CopyArchive%2FDiscordJS-V13-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CopyArchive","download_url":"https://codeload.github.com/CopyArchive/DiscordJS-V13-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247383904,"owners_count":20930368,"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","discord","discord-bot","discord-js","nodejs"],"created_at":"2024-11-05T16:17:38.678Z","updated_at":"2025-04-05T18:31:48.566Z","avatar_url":"https://github.com/CopyArchive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiscordJS-V13-Template\nDiscord.js v13 Template and commands ready to use\n\n\n# How to use it\n\nTo use discord.js install these packages:\n```sh\nnpm install discordjs/builders @discordjs/rest discord-api-types fs\n```\n\nether you can use the `index.js` of the repo or code it yourself:\n```js\nconst fs = require('fs');\nconst { Client, Collection, Intents } = require('discord.js');\nconst client = new Client({ intents: [Intents.FLAGS.GUILDS] });\nconst { TOKEN } = require('./config.json')\nclient.commands = new Collection();\n\n// The Bot goes up\nclient.once('ready', () =\u003e {\n\tconsole.log('Ready!');\n\tclient.user.setPresence({ activities: [{ name: 'activity text here' }], status: 'online' });\n});\n\nclient.on('interactionCreate', async interaction =\u003e {\n\tif (!interaction.isCommand()) return;\n\tconst command = client.commands.get(interaction.commandName);\n\n\tif (!command) return;\n\ttry {\n\t\tawait command.execute(interaction, client);\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\tawait interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });\n\t}\n});\n\n// Logins into the bot account\nclient.login(TOKEN);\n```\n\nto register slash commands use the `deploy-commands.js` of the repo\n\n\u003ch2\u003eRepo:\u003c/h2\u003e\n\nDownload the file you wanna include to your bot and credit me in your `credits` command like:\n```\n[COMMAND NAME] provided by: [Copy05](https://github.com/Copy05/)\n```\n\nif you have a `package.json` file i recomend you adding:\n```json\n\"scripts\": {\n    \"start\": \"node deploy-commands.js \u0026\u0026 node index.js\"\n  },\n```\n\n**NOTE: YOU REQUIRE BASIC JAVASCRIPT KNOWLEDGES TO CODE A BOT**\n\nThe peoples at Discord.js Guide have explained everything perfect: [Discord.js Guide](https://discordjs.guide/#before-you-begin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopyarchive%2Fdiscordjs-v13-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcopyarchive%2Fdiscordjs-v13-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopyarchive%2Fdiscordjs-v13-template/lists"}