Video thumbnail

Gamemaker

Twitter bot that simulates the colosseum on twitter using ai agents.

Gamemaker

Created At

ETHGlobal Cannes

Winner of

Saga - Best dApp built on Saga Chain 3rd place

Project Description

Twitter Duel Bot is a social Web3 game where users challenge each other to AI-judged duels using their actual tweets. The project fuses AI arbitration, on-chain transparency, and gamified identity into a cohesive experience, all fully integrated into Twitter.

👇 How It Works (User Flow): Initiating a Duel A user challenges another Twitter account by mentioning the bot (e.g., @thegamemakr @user2 let’s go!). The bot fetches recent tweets from both players.

The Duel Begins An AI “Emperor Agent” reviews both tweets and uses a custom prompt (like “Which argument is more convincing?” or “Who roasted better?”) to determine the winner. The prompt can vary based on duel category (debate, roast, rap battle, etc.).

On-Chain Recording

The full duel (players, tweets, prompt, AI result) is recorded immutably on-chain.

The duel record is not editable, preserving fairness and transparency.

Player Profiles & Stats

Each player has a persistent on-chain profile that tracks their career: wins, losses, duel history, rank, and more.

Over time, users build a reputation through dueling — turning their Twitter voice into an on-chain identity.

Rewards & Leaderboards

Players earn Solari tokens from Ronin based on outcomes.

Leaderboards update live, showing top duelists and rivalries — encouraging repeated engagement and public bragging rights.

đź”— Multi-Chain Infrastructure (Why 3 Chains?) We intentionally split responsibilities across three purpose-built chains to reflect modular, production-grade architecture:

🧠 Saga — The Match Engine Each duel is recorded on a Saga Chainlet, purpose-built for fast, isolated smart contract execution.

Stores: duelId, playerA/B, tweets, AI prompt, AI winner

Serves as the immutable, tamper-proof arena for all matches.

Benefits: Near-zero latency. Verifiable match history on-chain.

👤 Flow — Player Identity and Stats Player data is modeled as Cadence resources (perfect for evolving, stateful objects).

Stores: Win/loss count, duel history (linked via duelId from Saga), streaks, badges.

This builds persistent, structured player careers, separate from ephemeral matches.

Benefits: Strong consumer tooling (Flow aligns with public-facing UX). Great for linking social identity (e.g., Twitter handle → Flow profile).

🏆 Ronin — Rewards & Leaderboard Engine Used to deliver real-time, gasless XP/reward distribution to duel winners.

A simple XP-based reward system runs here, with: Claimable rewards Emitted RewardClaimed events Ranked leaderboards (pulling Flow stats and Ronin Solari token)

Benefits: Ronin is designed for fast, EVM-compatible Web3 games. It delivers a polished, game-like frontend with almost no user friction.

🤖 AI Emperor Agent: Trust via Prompt Transparency The "Emperor" AI is off-chain, but every decision it makes is fully auditable: Each match stores the exact prompt used for judgment. Anyone can review the tweets and the prompt and see how/why the winner was chosen. This ensures consistency, fairness, and reproducibility of all outcomes.

🔄 Interoperability Design An off-chain orchestrator (Node.js) listens for events on each chain and syncs them across: Saga emits DuelFinalized, backend pushes to Flow to update player profile. Flow updates trigger reward logic on Ronin. This design avoids duplication and preserves specialization:

Saga = source of truth for duels. Flow = source of truth for identity and history. Ronin = source of truth for gamified progression.

💡 Why This Matters Twitter Duel Bot creates an entirely new category of entertainment: AI-powered, social, on-chain games built directly on top of Web2 platforms like Twitter. Users don’t need to understand crypto to play, but their performance, history, and growth become fully transparent and verifiable on-chain.

This system is: A game. A cross-chain architecture prototype. A viral community-building tool (everyone wants to win on Twitter).

How it's Made

Technologies & Architecture Frontend: Built using V0 (a generative React UI tool) to rapidly scaffold components and UI states for a smooth user experience.

Backend Orchestration: Node.js with ethers.js and fcl to bridge communication between chains. It listens for events on one chain and triggers updates on another. And also many servers

Smart Contracts:

Solidity (Ronin): For fast, EVM-compatible interactions and reward tracking. Cadence (Flow): To model player profiles and persistent identity across battles. (Cadence will be integrated in the future)

AI Engine: OpenAI models were used to power the Emperor Agent, which interprets tweet-based duels and determines winners. Additional image models generate coliseum-style visualizations based on duel outcomes.

🔗 Partner Integrations & Design Rationale Saga: Hosts our custom Chainlet where match results (including winner, prompt, and tweet metadata) are recorded. It's fast, low-latency, and provides the “event ledger” of our system.

Flow: Stores player identity and career stats in a persistent, structured format. Each player profile includes match references pointing to Saga.

Ronin: Handles real-time rewards, XP points, and leaderboard logic — built to match Web3 gaming standards with near-instant feedback and gas efficiency.

Each chain was selected for its specialization, allowing us to demonstrate meaningful, non-overlapping usage of sponsor infrastructure.

🧪 Notable Hacks & Insights Cross-chain without bridges: Instead of relying on complex bridge infrastructure, we used an off-chain orchestrator to “watch” events from Saga and update Flow and Ronin accordingly. This kept the system reliable and hackathon-feasible.

AI prompt transparency: To ensure fairness, the exact prompt used by our AI referee is stored on-chain alongside the result — giving users a way to audit outcomes and ensure consistent judgment.

Chain specialization: Each blockchain handles a role that suits its architecture. This avoids redundancy and gives each partner a unique, essential place in the stack — Flow for state, Saga for history, Ronin for rewards.

background image mobile

Join the mailing list

Get the latest news and updates