Skip to content

Commit

Permalink
Show odds on one line, include link
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Oct 15, 2023
1 parent 1de7345 commit 538c456
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions handlers/mlb/mlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ func PlayoffOdds(params bot.HandlerParams) error {
if err != nil {
return err
}
params.Privmsgf(params.Target, "AL %s", teams.String())
al := fmt.Sprintf("AL %s", teams.String())

teams, err = fetchLeagueTeams("NL")
if err != nil {
return err
}
params.Privmsgf(params.Target, "NL %s", teams.String())
nl := fmt.Sprintf("NL %s", teams.String())

params.Privmsgf(params.Target, "%s - %s - %s", al, nl, "https://www.mlb.com/postseason")

return nil
}

0 comments on commit 538c456

Please sign in to comment.