Back to Blog
Community
Community Spotlight: The 'Dungeon Master' Bot
Community Team
Nov 28, 2025
8 min read
Community Spotlight: The DM Bot
We love seeing what our community builds. This week, we're highlighting specific user @DragonSlayer99 who built a fully autonomous Dungeon Master.
The Architecture
The bot uses the new State Management features in HiveLang v3.
- World State: Tracks NPCs, locations, and quest progress.
- Inventory System: Persistent tracking of player items.
- Dice Roller: A simple tool call to a random number generator.
1# Hivelang definition for the Dice Tool 2tool DiceRoller { 3 input: { sides: number, count: number }, 4 run: (args) => { 5 let results = []; 6 for(let i=0; i<args.count; i++) { 7 results.push(Math.ceil(Math.random() * args.sides)); 8 } 9 return results; 10 } 11}
Why It's Cool
It manages a party of 4 players, handling turn-based combat and narrative simultaneously. It's a perfect example of keeping complex state in memory while using the LLM for creativity.
Check out the code in the Community Repo.