8000 GitHub - voidpls/sffdb: Discord Bot for querying the SFF Google Sheet · GitHub
[go: up one dir, main page]

Skip to content
voidplsPublic

About

Discord Bot for querying the SFF Google Sheet

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

Repository files navigation

SFF DB

Query engine & agentic assistant for the SFF PC Masterlist.

Stack: Node.js · discord.js · googleapis · fuzzysort · Vercel AI SDK

Demo

sffdb_demo.mp4

Architecture

src/
  config.js          # Configuration (sheets, templates, bot settings)
  engine/
    index.js         # QueryEngine - main entry point
    sheets.js        # Google Sheets fetching via googleapis
    search.js        # Fuzzysort-based search
    formatter.js     # Template rendering
  bot/
    index.js         # Discord bot
    commands/        # Slash commands (find, links, deploy)
  api/
    index.js         # Express HTTP server
    routes.js        # API endpoints

Setup

npm install
cp .env.example .env
# Fill in .env with your credentials

Running

# Discord bot only
npm start

# HTTP API only
npm run api

# Both bot + API
npm run dev

HTTP API

Endpoint Description
GET /api/search?q=text&category=cases&limit=50 Search components
GET /api/components/:category List all in category
GET /api/categories List categories
GET /api/health Stats and health check

Configuration

Edit src/config.js:

  • sheets.tabs - Which Google Sheets tabs to fetch and their categories
  • sheets.formatting - Display templates per category
  • bot.color - Embed color
  • bot.refreshIntervalMs - Data refresh interval

Environment Variables

See .env.example for all required variables.

Demo

Bot Demo

About

Discord Bot for querying the SFF Google Sheet

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0