events

package
v0.0.0-...-c17eaf4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Unlicense Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedTransform

func AdvancedTransform(key string) *diskv.PathKey

AdvancedTransform for storing KV pairs

func GetPeriodicalsFromAPI

func GetPeriodicalsFromAPI(s *discordgo.Session) bool

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

func HasEventStartedToday(events []ei.EggEvent, now time.Time) (ei.EggEvent, bool)

HasEventStartedToday returns the latest event that started today in Pacific Time.

func HasEventsStartedToday

func HasEventsStartedToday(events []ei.EggEvent, now time.Time) []ei.EggEvent

HasEventsStartedToday returns all events that started today in Pacific Time.

func HasOngoingEventsNow

func HasOngoingEventsNow(events []ei.EggEvent, now time.Time) []ei.EggEvent

HasOngoingEventsNow returns all events that are currently active.

func InverseTransform

func InverseTransform(pathKey *diskv.PathKey) (key string)

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.

Jump to

Keyboard shortcuts

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