From 7049cbfd9d37d5a2641bce6625ad22c6c1e06b9a Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 30 Jan 2026 15:47:57 +0100 Subject: [PATCH] build: Add step to create a default `config.json` file during deployment. --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e7db852..592aea5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,6 +45,36 @@ jobs: - name: Install Dependencies run: bun install --frozen-lockfile + - name: Create Config File + run: | + mkdir -p shared/config + cat < shared/config/config.json + { + "leveling": { "base": 100, "exponent": 2.5, "chat": { "cooldownMs": 60000, "minXp": 15, "maxXp": 25 } }, + "economy": { + "daily": { "amount": "100", "streakBonus": "10", "weeklyBonus": "50", "cooldownMs": 86400000 }, + "transfers": { "allowSelfTransfer": false, "minAmount": "1" }, + "exam": { "multMin": 0.05, "multMax": 0.03 } + }, + "inventory": { "maxStackSize": "99", "maxSlots": 50 }, + "commands": {}, + "lootdrop": { + "activityWindowMs": 120000, "minMessages": 1, "spawnChance": 1, "cooldownMs": 3000, + "reward": { "min": 40, "max": 150, "currency": "Astral Units" } + }, + "studentRole": "123", "visitorRole": "456", "colorRoles": [], + "moderation": { + "prune": { "maxAmount": 100, "confirmThreshold": 50, "batchSize": 100, "batchDelayMs": 1000 }, + "cases": { "dmOnWarn": false } + }, + "trivia": { + "entryFee": "50", "rewardMultiplier": 1.5, "timeoutSeconds": 30, "cooldownMs": 60000, + "categories": [], "difficulty": "random" + }, + "system": {} + } + EOF + - name: Setup Test Database run: bun run db:push:local env: