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.
This commit is contained in:
Chris Sexton 2020-04-21 11:47:30 -04:00 committed by Chris Sexton
parent 0b553da32d
commit d0998d0a63
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func New(b bot.Bot) *EmojifyMePlugin {
var emoji []Emoji var emoji []Emoji
err = json.Unmarshal(body, &emoji) err = json.Unmarshal(body, &emoji)
if err != nil { 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{} emojiMap := map[string]string{}