Skip to content

MilkshakeCollective/bot-template

Repository files navigation

🥤 Milkshake Collective – Bot Template

A modern and customizable Discord bot template built and maintained by the Milkshake Collective.
This template is designed in TypeScript with a focus on scalability, maintainability, and best practices.


✨ Features

  • 📦 Modular command & event system
  • 🛢 Prisma ORM for database management
  • 🚀 Turborepo for monorepo setup and scalability
  • TypeScript with full type-safety
  • 🔒 Role-based permission utilities
  • 🛠 Dev-tools: dotenv, prettier, pino
  • 🤖 Powered by discord.js

🚀 Getting Started

1. Clone the repository

git clone https://github.com/MilkshakeCollective/bot-template.git
cd bot-template

2. Install dependencies

npm install

3. Configure environment

Rename .env.template to .env file in the root directory and configure your environment variables:

CLIENT_TOKEN="" # Discord Client Token <https://discord.com/developers/applications>
CLIENT_ID="" # Discord Client ID <https://discord.com/developers/applications>
CLIENT_SECRET="" # Discord Client Secret <https://discord.com/developers/applications>

ENABLE_CRASH_HANDLER=true
ENABLE_CRASH_WEBHOOK=true
EXIT_ON_CRASH=false
CRASH_HANDLER_WEBHOOK=https://discord.com/api/webhooks/xxxx/xxxx

DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"

4. Build the bot.

npm run build

5. Generate Prisma Client

npm run prisma

6. Run the bot

npm run start-bot

🤝 Contributing

We welcome contributions from the community! Feel free to open issues, suggest features, or submit pull requests.


📌 Links


📜 License

This project is licensed under the GPL-3.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published