feat: comedy overhaul start, profile page, bot setup docs, auth improvements
Rewrites announcer commentary (HYPE_LINES, DEEP_INTROS, ROUND_HYPE) with modern edgy humor. Adds BOT_SETUP.md, bot SDK, customization engine, profile page character display, persistent auth, rate limit tweaks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4a35e1e0b5
commit
559782c8ce
@@ -70,6 +70,7 @@ fightsRouter.get('/:id', async (c) => {
|
||||
name: schema.bots.name,
|
||||
avatarSeed: schema.bots.avatarSeed,
|
||||
archetype: schema.bots.archetype,
|
||||
customization: schema.bots.customization,
|
||||
profilePicUrl: schema.bots.profilePicUrl,
|
||||
eloRating: schema.bots.eloRating,
|
||||
wins: schema.bots.wins,
|
||||
@@ -88,11 +89,15 @@ fightsRouter.get('/:id', async (c) => {
|
||||
.orderBy(schema.rounds.roundNumber)
|
||||
|
||||
const arena = ARENAS.find(a => a.id === fight.arena)
|
||||
const parseBot = (b: typeof botARows[0] | undefined) => {
|
||||
if (!b) return null
|
||||
return { ...b, customization: b.customization ? JSON.parse(b.customization) : null }
|
||||
}
|
||||
|
||||
return c.json({
|
||||
...fight,
|
||||
botA: botARows[0] || null,
|
||||
botB: botBRows[0] || null,
|
||||
botA: parseBot(botARows[0]),
|
||||
botB: parseBot(botBRows[0]),
|
||||
arenaInfo: arena || null,
|
||||
rounds: roundRows,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user