Documentation ¶
Index ¶
- type MessageCreateProvider
- type Yahoo
- func (y *Yahoo) AnalyzeFreeAgents(statsType string, stats []string) string
- func (y *Yahoo) Compare(statsType, playerA, playerB string) string
- func (y *Yahoo) HeadToHead(week int, teamA, teamB string) string
- func (y *Yahoo) Help() *discordgo.MessageEmbed
- func (y *Yahoo) Leaders(date string) string
- func (y *Yahoo) Owner(playerNames []string) string
- func (y *Yahoo) PlayerStats(statsType, playerName string) string
- func (y *Yahoo) Ranks(week int, stat string) string
- func (y *Yahoo) Roster(teamName string) string
- func (y *Yahoo) Schedule(teamName string) string
- func (y *Yahoo) Scoreboard(week int) string
- func (y *Yahoo) Standings() string
- func (y *Yahoo) VsLeague(teamName string, week int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageCreateProvider ¶
type MessageCreateProvider interface { Scoreboard(week int) string Standings() string Roster(teamName string) string PlayerStats(statsType, playerName string) string Compare(statsType, playerA, playerB string) string AnalyzeFreeAgents(statsType string, stats []string) string VsLeague(teamName string, week int) string Schedule(teamName string) string Owner(playerName []string) string Leaders(date string) string HeadToHead(week int, teamA, teamB string) string Ranks(week int, stat string) string Help() *discordgo.MessageEmbed }
MessageCreateProvider is the interface for providers that are accessed on the MessageCreate Discord event.
type Yahoo ¶
type Yahoo struct {
// contains filtered or unexported fields
}
Yahoo is a provider for Yahoo Fantasy Sports.
func NewYahooProvider ¶
NewYahooProvider returns a new Yahoo provider
func (*Yahoo) AnalyzeFreeAgents ¶
AnalyzeFreeAgents prints the top 5 players for the given stats with th given type.
func (*Yahoo) HeadToHead ¶
HeadToHead displays the matchup results between the two given teams on the given week.
func (*Yahoo) PlayerStats ¶
PlayerStats returns a formatted string containing the stats for a player.
func (*Yahoo) Ranks ¶
Ranks sorts all the teams by the given stat for the given week and returns the sorted list as a string. If no week is given, the current week is used.
func (*Yahoo) Scoreboard ¶
Scoreboard returns a formatted string of all the Yahoo matchups for the given week. If week is -1, then the current week is used.