diff --git a/config/config.go b/config/config.go index 48993c7..3174bf9 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,7 @@ package config import ( + "log" "os" "strconv" ) @@ -40,3 +41,11 @@ func Load() (*Config, error) { return cfg, nil } + +func GetConfig() { + if !cfg { + log.Fatal("You must load the config") + } + + return cfg +} diff --git a/handlers/friday.go b/handlers/friday.go index 1da4409..03766e4 100644 --- a/handlers/friday.go +++ b/handlers/friday.go @@ -6,7 +6,6 @@ import ( "fmt" "strings" "time" - "io" "net/http" @@ -83,9 +82,9 @@ func FridayHandler(s *discordgo.Session, m *discordgo.MessageCreate) { message.Files = append(message.Files, processGifUrl(randomFridayGifUrl)) case time.Thursday: - message.Content = "Quasee, mas ainda não" + message.Content = "Quase, mas ainda não" - randomThursdayGif := getRandomGif("falta-um-dia") + randomThursdayGif := getRandomGif("quase-la") randomThursdayGifUrl := extractGifFromGTenor(randomThursdayGif, fallbackGifUrl) message.Files = append(message.Files, processGifUrl(randomThursdayGifUrl))