{"id":26489195,"url":"https://github.com/bur4kbey/ts-discord-bot","last_synced_at":"2026-03-11T01:31:16.778Z","repository":{"id":136742629,"uuid":"337806533","full_name":"BUR4KBEY/ts-discord-bot","owner":"BUR4KBEY","description":"An advanced discord bot template made with TypeScript.","archived":false,"fork":false,"pushed_at":"2024-07-14T01:49:20.000Z","size":139,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T15:38:48.640Z","etag":null,"topics":["bot","discord","discord-bot","discord-js","discord-js-v13","discordjs","discordjs-v13","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/BUR4KBEY.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":"2021-02-10T17:53:04.000Z","updated_at":"2025-01-04T09:12:31.000Z","dependencies_parsed_at":"2023-07-14T12:30:42.405Z","dependency_job_id":null,"html_url":"https://github.com/BUR4KBEY/ts-discord-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BUR4KBEY/ts-discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fts-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fts-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fts-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fts-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BUR4KBEY","download_url":"https://codeload.github.com/BUR4KBEY/ts-discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fts-discord-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30366051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-bot","discord-js","discord-js-v13","discordjs","discordjs-v13","typescript"],"created_at":"2025-03-20T07:20:23.598Z","updated_at":"2026-03-11T01:31:16.727Z","avatar_url":"https://github.com/BUR4KBEY.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typescript Discord Bot\n\n## 🌟 About\n\nThis is an advanced discord bot template made with TypeScript.\n\nYou can easily create more advanced, complex systems with this template.\n\n## 📜 Features\n\n-   Easy to develop advanced and complex systems\n    -   Because you have access to everything. You can change everything whatever you want.\n-   Command handler with error handling (`src/classes/CommandHandler.ts`)\n    -   Your bot doesn't crash on errors anymore. Errors will be logged to console.\n-   Cooldown, permission and nsfw channel checking on commands\n    -   You can set up cooldowns, required permissions and requiring nsfw channel for each command uniquely.\n-   Auto command \u0026 event registration and checking (`src/classes/Registry.ts`)\n    -   You don't have to spend time with defining commands and events manually.\n-   Beautiful, detailed console logs (`src/classes/Logger.ts`)\n    -   More beautiful, more readable. Thats good right?\n-   Full customizable discord client (`src/structures/DiscordClient.ts`)\n    -   You can easily add properties to client.\n\n## 🤖 Prepared Commands\n\n-   Dynamic help command\n\n    -   You can get command list with groups (`help`)\n    -   You can get detailed information about a command (`help [command-name]`)\n    -   This command renders all your commands dynamically. You don't have to waste time about documenting commands.\n    -   This command shows command list to users by their permissions. Forexample developer commands won't shown in normal user's help command and they can't see detailed information about it.\n    -   Disabled commands won't shown in help command and users (developers included) can't see detailed information about it.\n\n-   Reboot command **(Developer command by default)**\n    -   You don't have to reboot your bot on console. You can reboot by using this command. (`reboot`)\n    -   These events happen when reboot command run:\n        -   Bot stops\n        -   Resetting events, commands, command groups and cooldowns\n        -   Reregistering events and commands\n        -   Starting the bot again\n\n## ❓ What Is The Developer Permission\n\n-   You can create commands just usable for developers\n-   Developers doesn't affected from:\n    -   Cooldowns\n    -   Permission Checking\n    -   NSFW Channel Checking\n\n---\n\n## 📥 Installation\n\nYou can use `npm` instead of `yarn` but i recommended to use `yarn`.\n\n```\nyarn install\n```\n\n## ⚙️ Setting Up\n\n-   Rename `.env.example` to `.env` and fill it.\n-   Open `src/index.ts` and set up **moment-timezone** for your locale.\n\n## 🤖 Running The Bot\n\n-   Without Building\n    -   Type `yarn dev` to run.\n-   With Building\n    -   Type `yarn build` to build the project.\n    -   Type `yarn start` to run the builded project.\n\n---\n\n## 📌 Important\n\nYou can change client intents from `src/client.ts`.\n\n---\n\n## 🛠️ Creating Commands \u0026 Events\n\n### Commands\n\n-   Create a new file to `src/commands`. (You can create files in directories)\n-   Open your file.\n-   Add command template.\n\n```ts\nimport { Message } from 'discord.js';\n\nimport Command from '../../structures/Command';\nimport DiscordClient from '../../structures/DiscordClient';\n\nexport default class ExampleCommand extends Command {\n    constructor(client: DiscordClient) {\n        super(client, {\n            name: 'example',\n            group: 'Developer',\n            description: 'An example command.',\n            require: {\n                developer: true\n            }\n        });\n    }\n\n    async run(message: Message, args: string[]) {\n        await message.reply('Wow, example command working!');\n    }\n}\n```\n\n### Events\n\n-   Create a new file to `src/events`. (You can create files in directories)\n-   Open your file.\n-   Add event template.\n\n```ts\nimport { GuildMember } from 'discord.js';\n\nimport DiscordClient from '../structures/DiscordClient';\nimport Event from '../structures/Event';\n\nexport default class GuildMemberAddEvent extends Event {\n    constructor(client: DiscordClient) {\n        super(client, 'guildMemberAdd');\n    }\n\n    async run(member: GuildMember) {\n        console.log(`${member.user.tag} joined to ${member.guild.name}.`);\n    }\n}\n```\n\nYou can check event parameters from [discord.js.org](https://discord.js.org/#/docs/main/stable/class/Client).\n\n---\n\n## ⏰ Cancelling Cooldown\n\nIf you want to cancel adding command cooldown to user:\n\n-   Open your command file\n-   Add this parameter to `run` function:\n\n    ```ts\n    cancelCooldown: () =\u003e void\n    ```\n\n    It should looks like that:\n\n    ```ts\n    async run(message: Message, args: string[], cancelCooldown: () =\u003e void)\n    ```\n\n-   Call `cancelCooldown` function where you want to cancelling cooldown.\n\n## ☕ Support\n\nIf you find this project useful and would like to support [me](https://github.com/BUR4KBEY), you can do so by visiting [my website](https://burakbey.dev).\n\n\u003ca href=\"https://burakbey.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://burakbey.dev/github_support_snippet.png\" style=\"height: 56px !important;width: 200px !important;\" alt=\"Buy me a coffee\"\u003e\u003c/img\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbur4kbey%2Fts-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbur4kbey%2Fts-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbur4kbey%2Fts-discord-bot/lists"}