starl3xx.fun / cubs

Cubs bot

Bot

An automated bot that posts Chicago Cubs game recaps, news, and odds to the /cubs channel on Farcaster, with native inline highlight video.

A Cubs bot cast in the /cubs Farcaster channel, reading “FINAL: Cubs 8, Nationals 6” with the line score, the winning, losing and saving pitchers, the team record and streak, and a highlight video embedded inline.
A recap in /cubs: line score, pitchers of record, and the highlight playing inline.

What it does

Game recaps
Box-score casts with native inline highlight video after every Cubs game.
News
MLB.com articles run through a 0–100 significance score; only stories scoring 50+ get posted. Trivia, podcasts, and sweepstakes are filtered out.
Odds
Weekly Polymarket odds for the World Series and NL Central, with week-over-week deltas, cross-posted to Twitter.

How it works

  1. Vercel crons poll the MLB Stats API every 5 minutes for final games, news every 2 hours, odds on Mondays.
  2. Upstash Redis dedups state so each game and article posts exactly once.
  3. Text and photo casts publish through the Neynar SDK.
  4. Video takes the scenic route: download the MLB highlight, authenticate with the Farcaster Client API using the bot’s custody wallet, TUS-upload to Cloudflare Stream, wait for the embed classifier, then cast; the only path that renders native inline video.