← 返回
未分类 中文

NBA-games

Gets upcoming and/or recent NBA game results for a specified team. Use this skill when asked about scheduled, upcoming, or past games for any NBA team.
获取指定球队近期或即将进行的NBA比赛结果。当被问及任何NBA球队的赛程、即将进行或过去的比赛时使用此技能。
highdeserthacker
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 329
下载
💾 0
安装
1
版本
#latest

概述

NBA Games Skill

Fetch NBA schedule and results for a team using the python program nba-schedule.py.

Install

Run once to install the script from github. Skip if script is already present.

SCRIPT_PATH="$HOME/.openclaw/skills/nba_games/nba-schedule.py"
if [ ! -f "$SCRIPT_PATH" ]; then
  mkdir -p "$(dirname "$SCRIPT_PATH")"
  curl -fsSL \
    https://raw.githubusercontent.com/highdeserthacker/nba-schedule/main/nba-schedule.py \
    -o "$SCRIPT_PATH"
fi

> Source: https://github.com/highdeserthacker/nba-schedule

Script

$HOME/.openclaw/skills/nba_games/nba-schedule.py

Arguments

ArgumentRequiredDefaultDescription
------------
--team-id Yes-ESPN team ID
--days-future No3Upcoming days to include (0 = none)
--days-past No0Past days to include (0 = none)

Team ID Lookup

If the team ID is unknown, run:

python3 /home/node/python/nba-schedule/nba-schedule.py --list

This prints all 30 teams with their IDs.

Usage Examples

# Next 3 upcoming Golden State Warriors games
python3 $HOME/.openclaw/skills/nba_games/nba-schedule.py --team-id 9

# Warriors games in the next 2 days only
python3 $HOME/.openclaw/skills/nba_games/nba-schedule.py --team-id 9 --days-future 2

# Warriors games in the next 2 days plus yesterday's result
python3 $HOME/.openclaw/skills/nba_games/nba-schedule.py --team-id 9 --days-future 2 --days-past 1

# Lakers: next 5 days
python3 $HOME/.openclaw/skills/nba_games/nba-schedule.py --team-id 13 --days-future 5

Output Format

Returns a JSON array of game objects sorted by date ascending. Empty array [] means no games in the requested window.

[
  {
    "team":     "Golden State Warriors",
    "opponent": "Los Angeles Lakers",
    "location": "home",
    "datetime": "Fri Mar 28, 7:30 PM PDT",
    "result":   ""
  }
]
FieldDescription
------
teamFull display name of the requested team
opponentFull display name of the opposing team
location"home" or "away"
datetimeGame time in the container's local timezone
resultEmpty string for upcoming games; score string for completed games (e.g. "Golden State Warriors (W) 112, Los Angeles Lakers 98")

Presentation Guidelines

  • For upcoming games: state opponent, home/away, and tip-off date/time.
  • For completed games: state opponent, final score, and win/loss.
  • If the result array is empty, no games fall in the requested window - do not fabricate or guess.
  • Present results conversationally unless the caller context requires structured output.

Trigger Examples

  • "When is the next Warriors game?"
  • "Did the Bulls win last night?"
  • "Show me the Lakers schedule for the next week."
  • "What are the upcoming Celtics games?"

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 13:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 31,022
life-service

healthcheck

stellarhold170nt
使用 JSON 文件存储追踪饮水和睡眠
★ 11 📥 30,651
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 464 📥 230,723