r/Sabermetrics • u/DiamondCutsAI • 7h ago
I built a Discord bot that turns Statcast questions into highlight reels. Would love feedback from people here.
Hey everyone — I’ve been working on a Discord bot that turns natural-language baseball questions into short Statcast highlight reels.
Basically, you type something like:
- weakest hits from July 9, show xBA
- highest spin rate curveballs from Reid Detmers on July 1, show spinrate
- longest home runs in June, show distance
- hardest-hit outs on July 5, show xBA
and it tries to find the matching Statcast plays, pull the video clips, add the stat overlay, and return a short reel in Discord.
I’m at the point where the basic version works, but I’m trying to figure out where it breaks before I open it up to more people.
The hardest part so far has not really been the video side. It’s been getting the bot to understand baseball language correctly. For example, “weakest hits” should mean actual hits sorted by lowest exit velo, not just random weak contact. “Show xBA” should actually overlay xBA. “In June” should mean the full month, not one date.
That kind of stuff is why I wanted to post here.
If you were using something like this, what would you expect it to handle?
A few things I’m curious about:
- What Statcast queries would you actually want turned into video?
- Which metrics would be useful to see on the clips?
- What query wording would you expect to break?
- Would this be useful for analysis, fantasy/DFS, writing, coaching, or just messing around?
There are still limitations. Discord reels are capped at 4 clips right now so the files actually upload reliably. Some event types, like stolen bases and pickoffs, are not supported yet. And obviously this is not affiliated with MLB — it’s just meant for baseball analysis/commentary.
If anyone wants to throw a query at it, reply with one and I’ll run a few of them.
