Documentation ¶
Index ¶
- type DB
- func (d *DB) GetAPIToken(convID chat1.ConvIDStr) (res string, err error)
- func (d *DB) RecordAnswer(convID chat1.ConvIDStr, username string, pointAdjust int, isCorrect bool) error
- func (d *DB) ResetConv(convID chat1.ConvIDStr) error
- func (d *DB) SetAPIToken(convID chat1.ConvIDStr, token string) error
- func (d *DB) TopUsers(convID chat1.ConvIDStr) (res []topUser, err error)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) RecordAnswer ¶
type Handler ¶
type Handler struct { *base.DebugOutput sync.Mutex // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(stats *base.StatsRegistry, kbc *kbchat.API, debugConfig *base.ChatDebugOutputConfig, db *DB) *Handler
func (*Handler) HandleCommand ¶
func (h *Handler) HandleCommand(msg chat1.MsgSummary) error
func (*Handler) HandleNewConv ¶
func (h *Handler) HandleNewConv(conv chat1.ConvSummary) error
Click to show internal directories.
Click to hide internal directories.