LogoRobo.js
TemplatesDiscord bots

PostgreSQL

A Discord bot template using PostgreSQL for data persistence.

PostgreSQL

A bot using PostgreSQL and TypeScript for relational data storage.

Getting Started

Create a project with this template:

npx create-robo@next <project-name> --template discord-bots/postgres-ts

Then navigate into your project directory:

cd <project-name>

Configure PostgreSQL connection in .env:

DATABASE_URL=postgresql://user:password@localhost:5432/mybot

Run development mode:

npm run dev

Features

  • PostgreSQL integration
  • Connection pooling
  • TypeScript support
  • SQL query building

Hosting

npm run deploy

On this page