{"id":45033130,"url":"https://github.com/datzu712/nodecord","last_synced_at":"2026-02-19T06:01:09.477Z","repository":{"id":50541413,"uuid":"518267534","full_name":"Datzu712/nodecord","owner":"Datzu712","description":"A powerful Node.js framework for create efficient and scalable discord bots with TypeScript.","archived":false,"fork":false,"pushed_at":"2026-02-13T15:50:52.000Z","size":166,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T00:22:26.299Z","etag":null,"topics":["bot","discord","discord-bot","discordjs","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/Datzu712.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-27T01:22:46.000Z","updated_at":"2025-12-16T23:38:43.000Z","dependencies_parsed_at":"2023-12-15T19:54:09.230Z","dependency_job_id":"896487f7-5033-4ef4-b6a9-5caf16c6c55b","html_url":"https://github.com/Datzu712/nodecord","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"768733cefba878fea64b90a60b0546c64e4c8599"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Datzu712/nodecord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datzu712%2Fnodecord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datzu712%2Fnodecord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datzu712%2Fnodecord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datzu712%2Fnodecord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Datzu712","download_url":"https://codeload.github.com/Datzu712/nodecord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datzu712%2Fnodecord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T05:11:50.834Z","status":"ssl_error","status_checked_at":"2026-02-19T05:11:38.921Z","response_time":117,"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","discordjs","typescript"],"created_at":"2026-02-19T06:01:08.709Z","updated_at":"2026-02-19T06:01:09.470Z","avatar_url":"https://github.com/Datzu712.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodecord\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"/\" target=\"blank\"\u003e\u003cimg src=\"https://media.discordapp.net/attachments/838828747762827338/1122284372184281169/image.png\" width=\"500\" alt=\"nodecord logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003eA powerful Discord API wrapper for Node.js\u003cstrong\u003e\u003c/p\u003e\n\n## Basic bot usage\n\n### Commands\n\nCommands are a way that users can interact with your bot. We also support slash commands.\n\n\u003e *Message-based commands*\n\n```ts\n// src/categories/util/commands/ping.command.ts\nimport { Command, ICommand, Msg } from '@nodecord/core';\nimport type { Message } from 'discord.js';\n\n@Command({\n    name: 'ping',\n    aliases: ['p'],\n})\nexport class PingCommand implements ICommand {\n    execute(@Msg() message: Message) {\n        message.channel.send('Pong!');\n    }\n}\n\n```\n\n\u003e *Slash commands*\n\n```ts\n// src/categories/util/slashCommands/ping.command.ts\nimport { SlashCommand, ICommand, Interaction } from '@nodecord/core';\nimport type { ChatInputCommandInteraction } from 'discord.js';\nimport { pingSlashOptions } from './options/ping.options';\n\n@SlashCommand({\n    name: 'ping',\n    options: pingSlashOptions,\n})\nexport class PingSlashCommand implements ICommand {\n    execute(@Interaction() interaction: ChatInputCommandInteraction) {\n        interaction.reply('Pong!');\n    }\n}\n\n```\n\n### Categories\n\nNodecord groups commands by categories. A category is a group of commands that have something in common. For example, a category called \"utility\" could have commands like \"ping\", \"help\", \"invite\", etc...\n\n```ts\n// src/categories/util/util.category.ts\nimport { Category } from '@nodecord/core';\n\nimport { PingCommand } from './commands/ping.command';\nimport { PingSlashCommand } from './slashCommands/ping.command';\n\n@Category({\n    metadata: {\n        name: 'util',\n    },\n    commands: [PingCommand, PingSlashCommand],\n})\nexport class UtilityCategory {}\n\n```\n\n### Client Module\n\nThe client module will include all categories, etc...\n\n```ts\nimport { ClientModule } from '@nodecord/core';\n\nimport { UtilityCategory } from './categories/util/util.category';\n\n@ClientModule({\n    categories: [UtilityCategory],\n})\nexport class Client {}\n```\n\nAnd finally, the main file to start the bot.\n\n```ts\nimport { NodecordClient } from '@nodecord/core';\nimport { Client } from './client.module';\nimport { Partials, type ClientOptions, GatewayIntentBits } from 'discord.js';\n\n(async function () {\n    const { Guilds, MessageContent, GuildMessages, GuildMembers } = GatewayIntentBits;\n\n    const bot = new NodecordClient\u003cClientOptions\u003e(Client, {\n        abortOnError: true,\n        intents: [Guilds, MessageContent, GuildMessages, GuildMembers],\n        partials: [Partials.Channel, Partials.GuildMember, Partials.Message, Partials.User],\n        prefix: ['!'],\n    });\n\n    await bot.loadSlashCommands(yourBotToken, yourBotId);\n    await bot.login(yourBotToken);\n})();\n```\n\n## Help\n\nNodecord is still in development, and we're striving to make it production-ready. Currently, only the 'Legacy Commands' and slash commands are functional. If you'd like to assist us, please join our [Discord server](https://discord.gg/BSaERbS) and contact us.\n\n### todo\n\n- [ ] Add custom decorators\n- [ ] Add some kind of middleware for commands\n- [ ] Add custom events\n- [ ] Add param decorators for commands\n- [ ] Add support for other libraries\n- [ ] Command response based on command return\n- [ ] Commands debugging\n\nThere are many more things to do, but we're working on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatzu712%2Fnodecord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatzu712%2Fnodecord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatzu712%2Fnodecord/lists"}