hotfix panic, fixes #36
This commit is contained in:
@@ -78,6 +78,9 @@ func (b *Bot) getBotSettings() botSettings {
|
||||
if err != nil {
|
||||
b.log.Error("cannot get bot settings: %v", utils.UnwrapError(err))
|
||||
}
|
||||
if config == nil {
|
||||
config = map[string]string{}
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user