state

package
v0.0.0-...-846776f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Session   *discordgo.Session
	DB        *db.Handler
	Client    *http.Client
	Service   *spreadsheet.Service
	Schedules map[string]*schedule.Schedule
}

State holds all of the services needed for thonky to operate glued together.

func (*State) FindSchedule

func (s *State) FindSchedule(guildID, channelID string) *schedule.Schedule

FindSchedule looks for a team, then looks for their schedule

func (*State) FindTeam

func (s *State) FindTeam(guildID, channelID string) team.Team

FindTeam finds a team in a channel in a guild.

func (*State) GuildTeam

func (s *State) GuildTeam(guildID string) team.Team

GuildTeam returns the guild's team.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL