Toronto Raptors forward Scottie Barnes has been named the NBA Eastern Conference player of the week.

Barnes averaged a team-high 22 points, 6.3 rebounds, six assists and 36.4 minutes in three games, all Raptors wins. He missed Toronto’s 125-117 loss at Boston on Friday with a right knee sprain.

He ended his week with 31 points, eight assists and seven rebounds, including the winning free throw, in a 116-115 overtime win over visiting Philadelphia on Sunday.

Barnes, who was named player of the week for the second time in his career, is averaging 19.4 points, 8.4 rebounds, 5.3 assists, 1.4 blocks, 1.3 steals and 34.2 minutes in 39 games this season.

Barnes was named Eastern Conference defensive player of the month for October/November and is the only player in the NBA with at least 700 points, 300 rebounds, 200 assists, 50 steals and 50 blocks this season.

The Raptors (24-16) were set to host Philadelphia for a second straight night later Monday.

if (!res.ok) { throw new Error('Failed to fetch odds data'); }

const data = await res.json(); const oddsData = data?.data?.game?.details?.current_line; const visitingTeam = data?.data?.game?.visiting_team; const visitingTeamLogo = data?.data?.game?.visiting_team?.image_url_90; const homeTeam = data?.data?.game?.home_team; const homeTeamLogo = data?.data?.game?.home_team?.image_url_90; const gameTimestamp = data?.data?.game?.details?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp }; }

async function renderBetMGM(componentId, league, gameId) { let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = document.getElementById(componentId + '-odds'); if (!container) return;

try { ({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId)); } catch (err) { error = err.message; }

if (error) { container.innerHTML = `

Error: ${error}

`; return; }

if (!oddsData) { container.innerHTML = `

Odds data not available

`; return; }

let gameDate = new Date(gameTimestamp * 1000); const gameDateFormatted = gameDate.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });

container.innerHTML = `

BetMGM Odds
Moneyline
${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}
${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}
Spread
${oddsData.fav_id === visitingTeam.id ? oddsData.fav_points : oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === visitingTeam.id ? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money : oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}
${oddsData.fav_id === homeTeam.id ? oddsData.fav_points : oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id ? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money : oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}
Over/Under
O ${oddsData.total}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}
U ${oddsData.total}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

`; }

// Example usage renderBetMGM('block_60beae5e0a68f9fe4dda9d1a6ea592da', 'NBA', '742f383f-b7ff-4fb4-b284-478a3efbe73e');