Nexcord: New discord.js Framework Brings Dependency Injection to Bot Development
A developer has released Nexcord, an open-source framework built on top of discord.js for building Discord bots using decorator-driven architecture and dependency injection. The framework is inspired by NestJS and Angular, aiming to eliminate repetitive manual wiring of commands, events, and services that developers typically handle themselves. Nexcord automatically scans project folders at startup and resolves dependency graphs, so adding a new command requires no additional registration steps. It also introduces Route Forwarding Guards, a unified middleware system that works across both slash commands and event listeners using patterns like wildcards, prefixes, and regular expressions. The project was created after its author found conventional discord.js bot development increasingly feeling like maintenance work rather than feature development.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in