Skip to content

Add interactive gaming & gamification features#98

Open
typhonius wants to merge 8 commits intov3from
feature/trivia-game
Open

Add interactive gaming & gamification features#98
typhonius wants to merge 8 commits intov3from
feature/trivia-game

Conversation

@typhonius
Copy link
Copy Markdown
Owner

Summary

Adds 13 new commands that transform the hub into an interactive social gaming platform:

Core Systems

  • trivia — Multiplayer trivia game with 100+ questions across 7 categories, streak bonuses, persistent leaderboards
  • achievements — 22 auto-unlocking badges across Chat, Social, Loyalty, and Games categories with public announcements
  • ranks — Full XP/leveling system with 14 rank titles (Newcomer → Hub God), daily login streaks, progress bars, leaderboards

Competitive Games

  • duel — PvP best-of-3 d20 dice duels with persistent win/loss records
  • poll — Hub-wide voting with visual result bars, auto-close after 5 minutes

Word Games

  • hangman — Collaborative word guessing with ASCII art (80+ words)
  • wordle — 5-letter word puzzle with [=][~][.] feedback (400+ words)

Quick Fun

  • slots — Weighted slot machine with XP jackpot rewards
  • fortune — Random quotes and wisdom
  • roll — Full D&D dice notation (2d6, d20, 3d8+5)

Utility

  • quote — Save/recall memorable hub quotes with search
  • seen — Check when a user was last online
  • uptime — Bot uptime display

Cross-Integration

All games award rank XP. Achievements track trivia scores. Ranking system tracks XP across all activities.

No existing files modified — purely additive.

Test plan

  • All 52 command modules compile cleanly (perl -c)
  • All 56 YAML configs validate
  • Docker integration tests: 59 passed, 0 failed, 3 skipped
  • Full NMDC protocol end-to-end verification for every new command
  • Manual testing of trivia game flow (start → answer → timeout → scores)
  • Manual testing of duel accept/decline flow
  • Manual testing of poll create → vote → close flow

🤖 Generated with Claude Code

typhonius and others added 8 commits March 24, 2026 08:32
Implements a full trivia game engine with 100+ questions across 7
categories (Science, History, Geography, Movies, Music, General,
Technology), difficulty-based scoring (easy=1pt, medium=2pt, hard=3pt),
streak bonuses, persistent leaderboards via SQLite, and configurable
timeouts. Uses line hook for answer detection with fast bail when
inactive, and timer hook for auto-skip on expired questions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements 22 achievements across 4 categories (Chat, Social, Loyalty,
Games) that unlock automatically based on user activity. Tracks progress
via in-memory cache with periodic DB flush for performance. Uses init,
line, postlogin, logout, and timer hooks. Public announcements on unlock.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements a gamification system where all hub activities earn XP: chat
messages, daily logins with streak bonuses, file sharing, karma, trivia,
session time. 14 rank titles from Newcomer to Hub God with exponential
XP curve. Persistent via SQLite with in-memory cache. Progress bars and
leaderboards.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Challenge other users to best-of-3 d20 dice duels. Accept/decline via
chat, timeout after 60s. Persistent win/loss/draw records in SQLite.
Awards rank XP to winner. Null-safe user lookups.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create polls with pipe-delimited options, vote by typing the number,
visual progress bars in results, auto-close after 5 minutes. One vote
per user enforced. Only creator or ops can close early.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- quote: Save/recall memorable hub quotes with search, random, count
- seen: Check when a user was last online with duration display
- uptime: Bot uptime tracking via init hook
- roll: Full D&D dice notation (NdS+M) with sanity limits
- fortune: Random quotes and wisdom from curated collection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- hangman: Collaborative word guessing with ASCII art, 80+ words
- wordle: 5-letter word puzzle with [=][~][.] feedback, 400+ words
- slots: Weighted slot machine with XP jackpot rewards

All games use line hooks for passive input and award rank XP.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant