- Add drizzle configuration for SQLite database - Create package.json with necessary dependencies and scripts - Implement configuration loading for Discord bot - Define permissions for roles - Set up database schema for booster roles - Create Discord client and commands for managing booster roles - Handle guild member updates to manage roles based on boost status - Implement boost eligibility checks and role management logic - Add tests for boost eligibility and role guards - Create service for managing booster roles with in-memory storage for testing - Configure TypeScript settings for the project
11 lines
256 B
TypeScript
11 lines
256 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
|
|
export default defineConfig({
|
|
schema: "./src/db/schema.ts",
|
|
out: "./src/db/migrations",
|
|
dialect: "sqlite",
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL ?? "file:./data/booster-role.sqlite"
|
|
}
|
|
});
|