bbgo_origin/pkg/interact/default.go

22 lines
387 B
Go
Raw Normal View History

2022-01-14 03:57:01 +00:00
package interact
import "context"
var defaultInteraction = New()
func Default() *Interact {
return defaultInteraction
}
func SetMessenger(messenger Messenger) {
defaultInteraction.SetMessenger(messenger)
}
func AddCustomInteraction(custom CustomInteraction) {
custom.Commands(defaultInteraction)
}
func Start(ctx context.Context) error {
return defaultInteraction.Start(ctx)
}