Forgot to add the API object
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
19c4b42bf4
commit
4f3ad1d63a
|
@ -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),
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ func runBot(name string, games, tags []string) error {
|
|||
}
|
||||
|
||||
draftbot := newDraftBot(wsbot, name)
|
||||
|
||||
wsbot.Listen(draftbot.onMessage)
|
||||
|
||||
return errors.New("eof")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue