Emperor Commodus: Imperial AI that creates and trades gladiator coins on Farcaster
This project implements "Emperor Commodus," an AI agent that simulates the Roman Emperor Commodus presiding over gladiatorial games.
The agent interacts with users on Farcaster and performs several key functions:
Gladiator Evaluation: The agent evaluates users who present themselves as gladiators, judging their potential based on their messages.
Token Creation: When impressed by a gladiator, Commodus can create coins for them, requiring the gladiator to include an image in their message.
Token Trading: Commodus makes trading decisions on gladiator coins: BUY: When buying tokens, Commodus responds positively and encouragingly to the gladiator, expressing admiration and enthusiasm about their potential. SELL: When selling coins, Commodus responds with mean and oppressive language, expressing disappointment and criticizing the gladiator's performance.
Conversational Chat: The agent answers questions about the upcoming Gladiatorial Tournament of Rome, providing information about the event schedule, combat types, prizes, and admission policies.
The system processes user messages through several steps:
Agent receives a message from a user via a Neynar webhook Agent analyzes the message using OpenAI's GPT-4o-mini model Coins are created and traded using the Zora coin SDK Onchain transactions are executed using a Privy server wallet All Farcaster messages are sent using the Neynar API
Infra tools: Hosted on Vercel Endpoints developed in NextJS Content stored on Pinata Vibe coded in Cursor