mirror of https://github.com/velour/catbase.git
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:
parent
0b553da32d
commit
d0998d0a63
|
@ -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{}
|
||||||
|
|
Loading…
Reference in New Issue