@students-dev/create-cordgen
v1.0.1
Published
An NPX-powered project generator for creating Discord bots from advanced templates
Maintainers
Readme
✨ Features
- 🚀 12 Advanced Templates - From starter bots to complex systems
- 🎨 Interactive CLI - Beautiful terminal interface with Ink
- 🔧 Optional Integrations - MongoDB, Redis, PostgreSQL, Lavalink, Spotify
- 📦 Zero Dependencies - Works offline after initial setup
- 🔒 Security First - Token validation with user consent only
- 🎯 Production Ready - Includes tests, linting, and best practices
🎬 Quick Demo

🚀 Quick Start
# Create a new Discord bot
npx create-cordgen my-awesome-bot
# Use a specific template
npx create-cordgen my-bot --template music-lavalink
# TypeScript project
npx create-cordgen my-bot --template starter-ts --ts
# Skip prompts
npx create-cordgen my-bot --yes --owner "Your Name"📋 Available Templates
Starter Bots
- multipurpose-starter - Commands, events, and modular structure
- starter-ts - TypeScript version with full type safety
Specialized Bots
- moderation-pro - Advanced moderation with logging
- music-lavalink - High-quality music with Lavalink
- economy-basic - Coin system and gambling games
- ticket-system - Support ticket management
- ai-chat - AI-powered conversations
- fun-games - Trivia and entertainment games
- reaction-roles - Self-assignable role system
- logging-audit - Comprehensive server logging
- webhook-bridge - Cross-platform messaging
- express-dashboard - Web dashboard for bot management
🛠️ CLI Options
Usage: create-cordgen [options] [directory]
Arguments:
directory Directory to create the project in
Options:
-t, --template <template> Template to use
--ts Use TypeScript
--pm <manager> Package manager (npm, pnpm, yarn)
--no-install Skip dependency installation
-y, --yes Skip interactive prompts
--owner <name> Project owner/author name
--prefix <letter> Command prefix
-h, --help Display help
-V, --version Display version
Commands:
list List all available templates
info <templateId> Show template information
upgrade Check for updates🔧 Integrations
Add powerful features to your bot:
- MongoDB - NoSQL database for user data
- Redis - Caching and session management
- PostgreSQL + Prisma - SQL database with ORM
- Lavalink - High-quality audio streaming
- Spotify API - Music metadata and OAuth
📁 Project Structure
my-discord-bot/
├── src/
│ ├── commands/ # Slash commands
│ ├── events/ # Discord.js events
│ ├── utils/ # Helper functions
│ └── index.js # Main bot file
├── tests/ # Vitest test suite
├── .env # Environment variables
├── .env.example # Configuration template
├── package.json # Dependencies and scripts
└── README.md # Project documentation🏃♂️ Getting Started
Create your bot:
npx create-cordgen my-botConfigure environment:
cd my-bot cp .env.example .env # Edit .env with your bot tokenInstall and run:
npm install npm run devInvite to server: Use the Discord Developer Portal to generate an invite link.
📚 Documentation
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📝 License
MIT © students-dev
🙏 Acknowledgments
- Built with Ink for the CLI interface
- Powered by Discord.js
- Inspired by create-react-app and similar project generators
