From d0998d0a63eb2a598cab995e10d3c69a0d5f3403 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 21 Apr 2020 11:47:30 -0400 Subject: [PATCH] emojifyme: don't crash when github isn't available Note: we probably need some command to re-slurp this address or a command to restart the bot in the event that something went terribly wrong. --- plugins/emojifyme/emojifyme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/emojifyme/emojifyme.go b/plugins/emojifyme/emojifyme.go index 13ab96f..978ad55 100644 --- a/plugins/emojifyme/emojifyme.go +++ b/plugins/emojifyme/emojifyme.go @@ -39,7 +39,7 @@ func New(b bot.Bot) *EmojifyMePlugin { var emoji []Emoji err = json.Unmarshal(body, &emoji) if err != nil { - log.Fatal().Err(err).Msg("Error parsing emoji list") + log.Error().Err(err).Msg("Error parsing emoji list") } emojiMap := map[string]string{}