This is just a small personal use Discord bot base. It is designed and intended to be used with supabase. Feel free to poke around if you'd like. It has support for monitoring and styled logging. Examples may be provided in the future.
- Typescript: Language
- Bun: Runtime and Package Manager
- Discord.js: Discord API Wrapper
- Supabase: Database
Follow these steps to get up and running:
-
Set Environment Variables: Ensure you've set all environment variables.
-
Install Dependencies: Use Bun to install project dependencies:
bun install
-
Supabase Project ID: Update your package.json db:types command with your project ref id from supabase:
{ "scripts": { "db:types": "supabase gen types typescript --project-id <YOUR_PROJECT_REF_ID> src/types/database.types.ts" } }
-
Supabase Types: Use the supabase cli to pull the types from your project:
bun db:types
-
Push Commands to Discord: Push the bot's commands to your Discord server:
bun cmds:update
-
Start the Bot: Run the following command to start the bot in development mode:
bun dev