Skip to main content

Build a Discord Odds Bot Your Community Will Actually Use

A bot that serves live sports odds directly in your Discord server. Users type /odds Lakers and get real-time lines with team logos.

What You’ll Use

Prerequisites

Step 1: Initialize Both SDKs

Step 2: Register Slash Commands

Step 3: Handle /odds Command

Uses search() to find the team, then getEventOdds() for market data:

Step 4: Handle /scores Command

Uses getScores() β€” the lightweight endpoint optimized for frequent polling:

Step 5: Deploy

Deploy to Railway (free tier) or any Node.js host. Set environment variables: DISCORD_TOKEN, DISCORD_CLIENT_ID, FIELDFUNDED_API_KEY.

Rate Limit Awareness

The free tier gives you 10,000 req/month. With a Discord bot:
  • Each /odds command = 2 requests (search + odds)
  • Each /scores command = 1 request
  • 10,000 / 2 = ~5,000 /odds commands per month on the free tier
That’s more than enough for a community server.

Search API Reference

See search endpoint docs β†’

Live Scores Reference

See scores endpoint docs β†’

Get Your Free API Key

Start building in 5 minutes β€” 10,000 free requests/month