mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Merge pull request #297 from tony1223/bug/261-default-notification
fix #261 provide default config for notification setting
This commit is contained in:
commit
9d38dc2c87
|
@ -616,6 +616,15 @@ func (environ *Environment) ConfigureNotificationSystem(userConfig *Config) erro
|
|||
environ.Notifiability.AddNotifier(notifier)
|
||||
}
|
||||
|
||||
if userConfig.Notifications == nil {
|
||||
userConfig.Notifications = &NotificationConfig{
|
||||
Routing : &SlackNotificationRouting{
|
||||
Trade: "$session",
|
||||
Order: "$session",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if userConfig.Notifications != nil {
|
||||
if err := environ.ConfigureNotificationRouting(userConfig.Notifications); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user