- Fork & clone the repository
- Run
bun install --frozen-lockfile
to install the dependencies - Run
bun db:up
to run the Docker container needed for the local hosted database - Create a
.env
file in the root directory with the following contents:TOKEN=YOUR_BOT_TOKEN DB_NAME=YOUR_POSTGRES_DB_NAME DB_USER=YOUR_POSTGRES_DB_USER DB_PASS=YOUR_POSTGRES_DB_PASS DB_HOST=YOUR_POSTGRES_DB_HOST DB_PORT=YOUR_POSTGRES_DB_PORT
Get your bot token from the Discord Developer Portal
- Create a
config.json
file in the root directory with the following contents:{ "devIDs": [ "YOUR_DISCORD_USER_ID" ], "testGuildID": "YOUR_TEST_GUILD_ID", "premiumRoleID": "YOUR_PREMIUM_ROLE_ID", "applicationID": "YOUR_APPLICATION_ID" }
- Run
bun dev
to start the bot
- Create a new branch for your changes (
git checkout -b my-new-feature
) - Make your changes
- Use
bun format
to format your code using Prettier - Commit your changes (
git commit -am 'Add some feature'
) - Push your changes to your fork (
git push origin my-new-feature
) - Create a pull request against the
main
branch