bot

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryCollection = "entries"
)

Variables

View Source
var (
	ErrBlindTestChannelNotFound = fmt.Errorf("BlindTest channel not found")
)
View Source
var (
	ErrMasterNotFound = fmt.Errorf("Master not found")
)
View Source
var (
	NoErrUpdatingAnswers = fmt.Errorf("Successfully updated answers. :+1:")
)

Functions

func InitDB

func InitDB(dbPath string) *db.DB

Types

type BlindBot

type BlindBot struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(debug bool, botUserKey, key, masterEmail, botName, BlindTestChannel, dbPath string, domain []string) (*BlindBot, error)

func (*BlindBot) AnnouncementMessage

func (b *BlindBot) AnnouncementMessage(hints string, entry *entry) string

func (*BlindBot) Run

func (b *BlindBot) Run()

func (*BlindBot) SubmitHandler

func (b *BlindBot) SubmitHandler(w http.ResponseWriter, r *http.Request)

type SlackMessage

type SlackMessage struct {
	Msg    string
	TeamID int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL