TemplatesDiscord bots
Prisma
A Discord bot template using Prisma ORM for data persistence.
Prisma
A bot using Prisma ORM and TypeScript for type-safe database access.
Getting Started
Create a project with this template:
npx create-robo@next <project-name> --template discord-bots/prisma-tsThen navigate into your project directory:
cd <project-name>Configure database connection in .env:
DATABASE_URL="postgresql://user:password@localhost:5432/mybot"Run migrations:
npx prisma migrate devRun development mode:
npm run devFeatures
- Prisma ORM integration
- Type-safe database queries
- Auto-generated client
- Database migrations
.envDatabase URL
Schema Example
model User {
id String @id
balance Int @default(0)
createdAt DateTime @default(now())
}Hosting
npm run deploy