A-BSO & A-OSB
Independent MIT-licensed forks of Bot School Old (BSO) and Old School Bot (OSB), developed and maintained under my leadership.
My first step into independent game systems development was contributing to the original Old School Bot repository starting in 2020. Later, I created A-BSO (Bot School Old) and A-OSB (Old School Bot) as separate forks built on the MIT-licensed codebase, where I now serve as lead developer.
Because both bots run active player communities, every progression tweak, economy sink, and event rule gets tested immediately. Below are the major systems I designed and shipped on A-BSO, starting with the Dungeoneering expansion, the 220-file QoL and Party Room update, and the animated Lottery engine.
- Role
- Lead Developer (A-BSO & A-OSB)
- History
- OSB Contributor since 2020; Independent MIT Forks
- Stack
- TypeScript, Node.js, Discord.js, Prisma, PostgreSQL
- Testing
- Vitest (Unit & Economy Tests), Biome
- Major A-BSO Updates
- Dungeoneering (83 files), QoL/Party Room (220 files), Lottery, Auto-Farm
- Collaboration
- Async Git, 10+ Contributor PRs Reviewed & Merged
10-Floor Dungeoneering Expansion & 220-File QoL Update
Two of the largest updates on A-BSO reworked endgame Dungeoneering progression from the ground up and shipped a broad quality-of-life pass across Party Room drop parties, Item Contracts, Box Frenzy, Tames, and item pricing.
Dungeoneering 7 → 10 Floor Rework
Rebuilt Dungeoneering into a 10-floor progression ladder with separate combat and non-combat skill gates per floor, Kinship Ring tier progression (checkKinshipFloorSpread), and /dg floors diagnostics that list exact missing skills.
- Added piecewise-linear Gorajan shard XP boost interpolation (0% to +30% between 13M and 500M Dungeoneering XP) and double-shard rolls on Floors 9 and 10.
- Recalibrated token payouts (
XP x 0.1plus +15%, +25%, and +40% floor bonuses on Floors 8 to 10) and scaled Alyra pet drops from 1/9,400 to 1/4,000.
Balloon Party Room & Broad QoL Pass
Built a 674-line interactive Balloon Party Room (partyRoom.ts) supporting patron and player-funded drop parties: 20 clickable balloon buttons per 25-second wave, 3-second per-user pop cooldowns, and 2-second dirty-flag UI throttling so simultaneous clicks do not hit Discord rate limits.
- Reworked Box Frenzy (225 lines), Item Contracts (260 lines), Gathering Pet Tables (157 lines), Challenge Items, and Tame activity tasks.
- Added a 338-line automated item price updater (
updateItemPrices.ts) and unified custom trip durations across 37 minigame files (41cc19ad5).
Repeat-Win Decay Lottery & 5-Slot Discord Draw Reel
In MMO economies, flat ticket lotteries let the wealthiest accounts win consecutive prizes and discourage regular players from entering. I built a multi-lottery engine with exponential repeat-win weight decay and a 5-slot animated Discord draw.
Live Hype-Roll & Anti-Whale Decay Simulator
Exact repeat-win decay math from src/lib/bso/commands/lottery.ts. Spin 2–3 rounds to watch repeat winners lose effective weight automatically.
GP, Item Trade-Ins & Pool Tax
Each lottery is independently configured in lottery.ts: GP ticket pricing, item-value deposits with curated override prices (eggs, Twisted bows, Dwarven warhammers, clue caskets), custom trade-in rules, Ironman flags, and multi-spin general prize pools.
Async Lock + Live Reel Frames
All state mutations pass through withLotteryLock so concurrent deposits and draws cannot race. During draws, buildHypeRollFrames() renders a weighted 5-slot reel scrolling past a pointer directly in Discord chat.
3,217-Line Auto-Farm Engine & Persistent Trip Queue
Built two systems to reduce repetitive manual commands across farming runs and multi-trip sessions.
Per-Patch Auto-Farm Preferences
Added per-patch seed selection (preferences.ts) supporting highest_available, a pinned seedID, or leaving a patch empty, with Farming Contract priority overrides, custom autocomplete, and normalized storage.
Multi-Activity Trip Queue
Added a PostgreSQL-backed trip queue (DAILY_QUEUE_CAP = 4) across 22+ activities (bosses, raids, Colosseum, Inferno, clues, skilling, fishing, and questing). When a trip ends, the next queued run dispatches automatically, covered by tripQueue.test.ts.
The Cursed Pumpkin: 1-of-1 Hot-Potato World Event
Built a Halloween PvP event where one Cursed Pumpkin existed across the entire server, rewarding the current holder during trips while other players attempted to steal it.
Tracked hold-time leaderboards, steal cooldowns, greased and immunity windows, Scared Crow and Alluring modifiers, and trip reward boxes.
To stop simultaneous steal attempts from duplicating the item, every transfer ran through a promise-chain lock (withPumpkinLock) backed by a PostgreSQL JSONB bank check across all users, followed by a clean teardown script (despawn_cursed_pumpkin.sql) at event end.
currentHolderId: string | null heldSince / immunityUntil / greasedUntil hasScaredCrow & scaredCrowAttempts lastStealAttempt: Record<userId, ms> totalHoldTimes: Record<userId, ms> ticketsAwarded & boxesAwarded
Inspect Major A-BSO & A-OSB Updates
7 to 10 Floor Expansion, Kinship Rings & Gorajan Scaling
Expanded Dungeoneering from 7 to 10 floors with combat and non-combat skill requirements across every tier. Added Kinship Ring progression tracking, piecewise-linear Gorajan shard XP boost interpolation (0% to +30% from 13M to 500M XP), scaling token bonuses (+15% on Floor 8, +25% on Floor 9, +40% on Floor 10), Alyra pet scaling (1/9,400 to 1/4,000), and /dg floors missing-skill diagnostics.
- src/lib/bso/commands/dg.ts (+288 lines)
- src/lib/bso/skills/dungoneering/dungData.ts & dungDbFunctions.ts
- docs/src/content/docs/bso/Skills/Dungeoneering.md (+70 lines)
- Boss food math, Invention, and 8+ BSO boss/demi-boss adjustments
PR Reviews, Historical Contributions & Live Debugging
Upstream Contributions
Contributed to the original Old School Bot repository starting in 2020, including BSO ToA Fix (#6770), Shades Mini Rework (#6773), Quality Passover (#6791), Weapon Poison Alias (#6908), and Verdant Island updates (#7043 to #7046, #7121).
10+ Contributor PRs Merged
Reviewed and integrated contributor PRs across A-BSO and A-OSB, including Maggot King, Hunter Rumours, Mixology, Stealing Artefacts, Dated Gambling P&L, Decant All, and Vorkath Head 50kc.
CI, Economy & Boost Order
Traced CI failures back to missing Prisma database constraints, built the 524-line Bonds economy integration and Patron Redux refactor, fixed quad-loot double application, and corrected boss boost evaluation order.