Forgot to add the API object
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Hamcha 2019-06-27 17:12:39 +02:00
parent 19c4b42bf4
commit 4f3ad1d63a
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ type BotInterface interface {
func newDraftBot(botAPI BotInterface, name string) *draftBot {
return &draftBot{
API: botAPI,
Name: name,
Sessions: make(map[string]session),
}

View File

@ -82,7 +82,7 @@ func runBot(name string, games, tags []string) error {
}
draftbot := newDraftBot(wsbot, name)
wsbot.Listen(draftbot.onMessage)
return errors.New("eof")
}