Note
This project base can be generated using the Constant CLI.
Full documentation available at: https://constatic-docs.vercel.app/docs/discord/start
Warning
Required Node.js version: 20.12 or higher
- 🎯 Project Objective
- 🧰 Technologies
- 🏗️ Architecture
- ⚙️ Usage Instructions
- 🔧 Available Scripts
- 📦 Features & Structures
⚠️ Requirements & Limitations- 🤝 Contribution Guidelines
- 📄 License
- 📬 Contact
Collab Stars is the most complete Discord bot boilerplate available — built with TypeScript and designed for performance, scalability, and collaborative development.
It was created to:
- Provide a scalable and extensible base for Discord bots.
- Simplify bot development using modular, typed, and documented code.
- Integrate seamlessly with the tools and workflows developed by the Collab Stars organization.
- Language: TypeScript
- Runtime: Node.js 20.12+
- Frameworks & Tools:
- Discord.js v14+
- ESLint & Prettier
- Dotenv
- TSup for bundling
This project uses a clean, layered architecture inspired by modern backend practices:
-
⚙️ Command System
Slash commands are defined modularly and auto-registered on startup. -
🎙️ Event Layer
All event listeners (e.g.,messageCreate
,interactionCreate
) are handled independently. -
📡 Responders System
Custom message responders allow dynamic reactions to specific content. -
📁 Structured Filesystem
Organized with clear folders:commands/
,events/
,responders/
,utils/
, etc.
git clone https://github.com/seu-usuario/collab-stars.git
cd collab-stars
npm install
Create a .env
file with your bot token and other settings:
DISCORD_TOKEN=your_token_here
CLIENT_ID=your_bot_client_id
GUILD_ID=optional_dev_guild_id
npm run dev
Command | Description |
---|---|
dev |
Run bot in development mode (ts-node) |
build |
Build the TypeScript project |
watch |
Rebuild automatically on file change |
start |
Run the compiled project |
Explore each module in the official documentation:
- 📜 Commands
- 🤖 Responders
- 🔊 Events
You can extend any of these systems using TypeScript interfaces and classes to fit your bot's goals.
- ✅ Requires Node.js
v20.12
or higher - 🔐 Bot token must be kept private and loaded via
.env
- 🧪 This is a base project — not production-ready without adjustments
We welcome contributions that improve structure, performance, and clarity.
Before contributing, please read the full contribution guide.
To contribute:
- Fork this repository.
- Create a feature branch (
git checkout -b feat/new-feature
). - Commit and push your changes.
- Open a pull request with a clear description.
This project is licensed under the MIT License.
See the LICENSE file for more details.
- Developed by @francisc0arauj0, @gontroller, @svyc, and @Vyzer9
- Contribute or report issues via GitHub Issues
🧠 This project is maintained by @francisc0arauj0, @gontroller, @svyc, and @Vyzer9 under the Collab Stars organization.
Designed to boost productivity, code quality, and community collaboration.
