๐ŸŽฏ

TRIVIA

Group multiplayer MCQ โ€” Groq writes, Zion referees

In a WhatsApp group, Neo kicks off @zion trivia. Zion asks Groq for a batch of five multiple-choice questions, posts them one at a time with a 30-second clock, scores every A/B/C/D answer per player, and prints a final podium. Scores persist in trivia.db for bragging rights.

A Real Conversation

Group chat โ€” Neo starts, friends compete, Zion keeps score

APRM CREW Neo: @zion trivia 3:00 PM [Zion] ๐ŸŽฏ Trivia Round! โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Q1: In what year was the first iPhone released? A) 2005 B) 2007 C) 2008 D) 2006 3:00 PM Murtuza: B 3:01 PM Neo: B 3:01 PM ๐Ÿ” click to read full brief GROUP ๐Ÿ“ฑ multiplayer trivia ZION group trivia mode state machine GROQ LLM 5 MCQ batch / round varied topics + difficulty JSON-safe stems + options GAME ENGINE Q1โ†’Q5 ยท 30s timer score per question judge A/B/C/D answers Group WhatsApp questions + scores leaderboard finale trivia.db per-player totals all-time + history replay-ready rows Trivia handlers in zion.py + trivia.db persistence

Capability Map

Trivia construct โ€” engine, AI writer, social layer, storage

๐ŸŽฏ TRIVIA GAME ENGINE 5 MCQ per round 30s timer per question per-player score tracking anti-cheat + pacing AI Groq generates questions varied topics + difficulty batched JSON parsing repair on malformed sets SOCIAL WhatsApp group multiplayer competitive banter safe live leaderboard text mentions + @zion flow STORAGE trivia.db (SQLite) all-time scores game history rows per-group namespaces

Tech Stack

RuntimePython 3 โ€” trivia handlers inside zion.py
LLMGroq OpenAI GPT-OSS-120B โ€” MCQ generation
Gameplay5 questions, 30s timer, A/B/C/D parsing
Storagetrivia.db โ€” scores, rounds, players
SurfaceWhatsApp groups via Bridge API
Kickoff@zion trivia (Neo in group)
โœ•
๐ŸŽฏ TRIVIA
Neo: @zion trivia
3:00 PM
[Zion] ๐ŸŽฏ Trivia Round!
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Q1: In what year was the first iPhone released?
A) 2005 B) 2007
C) 2008 D) 2006
3:00 PM
Murtuza: B
3:01 PM
Neo: B
3:01 PM
[Zion] โœ… Correct! B) 2007
Murtuza: 1/1 โญ
Neo: 1/1 โญ
3:01 PM
๐Ÿ† Final Scores:
1. Neo โ€” 4/5
2. Murtuza โ€” 3/5
3. Harsh โ€” 2/5
3:15 PM