Documentation
¶
Index ¶
Constants ¶
View Source
const REMOTE_LOCATION string = "online"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Discord DiscordConfig `yaml:"discord"`
}
type DiscordConfig ¶
type DiscordConfig struct {
Token string `yaml:"token" env:"DISCORD_TOKEN"`
GuildID string `yaml:"guild_id" env:"DISCORD_GUILD_ID"`
EventCategory string `yaml:"event_category" env:"DISCORD_EVENT_CATEGORY"`
ArchiveCategory string `yaml:"archive_category" env:"DISCORD_ARCHIVE_CATEGORY"`
NotificationChannel string `yaml:"notification_channel" env:"DISCORD_NOTIFICATION_CHANNEL"`
}
type Event ¶
type Event struct {
Name string
ID string
Location string
Completed bool
DateTime time.Time
Organizer *User
}
func (*Event) GetCityFromLocation ¶
GetCityFromLocation returns the city name of an event's location
func (*Event) GetMonthPrefix ¶
GetMonthPrefix returns a month in short form
Click to show internal directories.
Click to hide internal directories.