Documentation
¶
Index ¶
- func AdvancedTransform(key string) *diskv.PathKey
- func GetPeriodicalsFromAPI(s *discordgo.Session) bool
- func HandleEventHelper(s *discordgo.Session, i *discordgo.InteractionCreate)
- func HandleLaunchHelper(s *discordgo.Session, i *discordgo.InteractionCreate)
- func HasEventStartedToday(events []ei.EggEvent, now time.Time) (ei.EggEvent, bool)
- func HasEventsStartedToday(events []ei.EggEvent, now time.Time) []ei.EggEvent
- func HasOngoingEventsNow(events []ei.EggEvent, now time.Time) []ei.EggEvent
- func InverseTransform(pathKey *diskv.PathKey) (key string)
- func LoadCustomEggData() (map[string]*ei.EggIncCustomEgg, error)
- func SlashEventHelperCommand(cmd string) *discordgo.ApplicationCommand
- func SlashLaunchHelperCommand(cmd string) *discordgo.ApplicationCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvancedTransform ¶
AdvancedTransform for storing KV pairs
func GetPeriodicalsFromAPI ¶
GetPeriodicalsFromAPI will download the events from the Egg Inc API. Returns true if it detects a meaningful live periodicals refresh.
func HandleEventHelper ¶
func HandleEventHelper(s *discordgo.Session, i *discordgo.InteractionCreate)
HandleEventHelper handles the /launch-helper command
func HandleLaunchHelper ¶
func HandleLaunchHelper(s *discordgo.Session, i *discordgo.InteractionCreate)
HandleLaunchHelper handles the /launch-helper command
func HasEventStartedToday ¶
HasEventStartedToday returns the latest event that started today in Pacific Time.
func HasEventsStartedToday ¶
HasEventsStartedToday returns all events that started today in Pacific Time.
func HasOngoingEventsNow ¶
HasOngoingEventsNow returns all events that are currently active.
func InverseTransform ¶
InverseTransform for storing KV pairs
func LoadCustomEggData ¶
func LoadCustomEggData() (map[string]*ei.EggIncCustomEgg, error)
LoadCustomEggData will load the custom egg data from the diskv store
func SlashEventHelperCommand ¶
func SlashEventHelperCommand(cmd string) *discordgo.ApplicationCommand
SlashEventHelperCommand returns the command for the /launch-helper command
func SlashLaunchHelperCommand ¶
func SlashLaunchHelperCommand(cmd string) *discordgo.ApplicationCommand
SlashLaunchHelperCommand returns the command for the /launch-helper command
Types ¶
This section is empty.