Documentation ¶
Index ¶
- Constants
- Variables
- type EightBall
- func (b *EightBall) CurrentState() []byte
- func (b *EightBall) Description() string
- func (b *EightBall) HandleConfig(w *core.Wrangler, data json.RawMessage) error
- func (b *EightBall) HandleMessage(req *webhook.Request) core.Reply
- func (b *EightBall) Help() core.Reply
- func (b *EightBall) Name() string
- type Sheriff
- type SheriffConfig
- type SheriffState
- type SheriffUser
- type SheriffUsers
Constants ¶
View Source
const ( EmojiFailed = "(failed)" EmojiSuccess = "(successful)" CmdNext = "next" CmdPrevious = "previous" CmdSet = "set" CmdAway = "away" CmdBack = "back" CmdList = "list" CmdAnnounce = "announce" )
Variables ¶
View Source
var AuthorizedCmds = []string{CmdNext, CmdPrevious, CmdSet, CmdAway, CmdBack}
Functions ¶
This section is empty.
Types ¶
type EightBall ¶
type EightBall struct {
// contains filtered or unexported fields
}
func (*EightBall) CurrentState ¶
func (*EightBall) Description ¶
func (*EightBall) HandleConfig ¶
func (*EightBall) HandleMessage ¶
type Sheriff ¶
type Sheriff struct {
// contains filtered or unexported fields
}
func (*Sheriff) CurrentState ¶
func (*Sheriff) Description ¶
func (*Sheriff) HandleConfig ¶
type SheriffConfig ¶
type SheriffState ¶
type SheriffState struct { CurrentSheriff int `json:"current_sheriff"` SheriffUsers SheriffUsers `json:"sheriff_users"` }
type SheriffUser ¶
type SheriffUsers ¶
type SheriffUsers []SheriffUser
func (SheriffUsers) Len ¶
func (slice SheriffUsers) Len() int
func (SheriffUsers) Less ¶
func (slice SheriffUsers) Less(i, j int) bool
func (SheriffUsers) Swap ¶
func (slice SheriffUsers) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.