{"id":15161550,"url":"https://github.com/RuskyDev/discord-bot-template","last_synced_at":"2025-08-23T19:30:54.065Z","repository":{"id":257646471,"uuid":"858909367","full_name":"RuskyDev/discord-bot-template-v14","owner":"RuskyDev","description":"A highly advanced Discord bot template featuring event handling and command handling with both prefix and slash commands.","archived":false,"fork":false,"pushed_at":"2024-12-14T10:12:54.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-21T14:22:41.499Z","etag":null,"topics":["bot","commands","cooldown","discord","handler","nodejs","prefix","slash","template","v14"],"latest_commit_sha":null,"homepage":"https://rusky.is-a.dev","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/RuskyDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":"ruskydev","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-09-17T18:36:29.000Z","updated_at":"2024-12-14T10:12:58.000Z","dependencies_parsed_at":"2024-10-30T11:36:08.374Z","dependency_job_id":null,"html_url":"https://github.com/RuskyDev/discord-bot-template-v14","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"547860fdec9f07cf44413120cfc96158722448d1"},"previous_names":["ruskydev/discord-bot-template-v14"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fdiscord-bot-template-v14","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fdiscord-bot-template-v14/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fdiscord-bot-template-v14/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fdiscord-bot-template-v14/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RuskyDev","download_url":"https://codeload.github.com/RuskyDev/discord-bot-template-v14/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230725317,"owners_count":18271141,"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","commands","cooldown","discord","handler","nodejs","prefix","slash","template","v14"],"created_at":"2024-09-27T00:24:12.445Z","updated_at":"2025-08-23T19:30:54.056Z","avatar_url":"https://github.com/RuskyDev.png","language":"JavaScript","funding_links":["https://patreon.com/ruskydev"],"categories":[],"sub_categories":[],"readme":"# Discord Bot Template\r\nAn advanced template for Discord bots with event handling, prefix and slash commands, user app support, cooldown management, and many customization options.\r\n\r\n## Features  \r\n- Easy event handling  \r\n- Works with prefix and slash commands  \r\n- Supports user apps  \r\n- Manages cooldowns efficiently  \r\n- A lot of customization options for different bot functionalities\r\n\r\n## Templates\r\nExample Slash Command:\r\n```js\r\nconst { SlashCommandBuilder } = require('@discordjs/builders');\r\n\r\nmodule.exports = {\r\n    data: new SlashCommandBuilder()\r\n        .setName('ping')\r\n        .setDescription('Replies with Pong!')\r\n        .setIntegrationTypes(0, 1) // 0 for Guild Install, 1 for User Install\r\n        .setContexts(0, 1, 2), // 0 for Guild, 1 for Bot DM, 2 for Group Chat        \r\n    cooldown: 5,\r\n    async execute(interaction) {\r\n        await interaction.reply('Pong!');\r\n    },\r\n};\r\n```\r\nExample Prefix Command:\r\n```js\r\nmodule.exports = {\r\n    name: 'ping',\r\n    description: 'Replies with Pong!',\r\n    cooldown: 5,\r\n    execute(message, args) {\r\n        message.channel.send('Pong!');\r\n    },\r\n};\r\n```\r\nExample Event:\r\n```js\r\nmodule.exports = {\r\n    name: 'messageCreate',\r\n    async execute(message, client) {\r\n        if (message.author.bot) return;\r\n\r\n        if (message.content.toLowerCase().includes('israel')) {\r\n            message.reply('Fuck Israel');\r\n        }\r\n    },\r\n};\r\n```\r\nExample .env File:\r\n```bash\r\nDISCORD_BOT_TOKEN=\r\nDISCORD_BOT_CLIENT_ID=\r\n```\r\n\r\n## Contributions \u0026 Bug Reports\r\nIf you encounter any bugs, feel free to open an [issue](https://github.com/RuskyDev/discord-bot-template/issues) or join my [Discord server](https://discord.gg/MAnvhWJvsC). Contributions are welcome! Be sure to check out the [issues](https://github.com/RuskyDev/discord-bot-template/issues) tab for ways to help.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuskyDev%2Fdiscord-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRuskyDev%2Fdiscord-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuskyDev%2Fdiscord-bot-template/lists"}