Documentation ¶
Index ¶
- func RunningTimers(bot *UserBot, cmd utils.Command) error
- func Start()
- func StartTimer(bot *UserBot, cmd utils.Command) error
- func StartedTasks(bot *UserBot, cmd utils.Command) error
- func StopTimer(bot *UserBot, cmd utils.Command) error
- func TimerStatus(bot *UserBot, cmd utils.Command) error
- type CmdHandler
- type HandlerFunc
- type IncomingMsg
- type UserBot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdHandler ¶
type CmdHandler struct {
// contains filtered or unexported fields
}
func NewCmdHandler ¶
func NewCmdHandler(bot *UserBot) CmdHandler
func (*CmdHandler) Handle ¶
func (c *CmdHandler) Handle(cmd string, handler HandlerFunc)
func (*CmdHandler) Process ¶
func (c *CmdHandler) Process(s string)
type IncomingMsg ¶
type IncomingMsg struct { UserId string Text string RawText string ChannelId string Private bool Highlight bool Direct bool User *slack.User }
func NewIncomingMsg ¶
func NewIncomingMsg(bot *UserBot, evt *slack.MessageEvent) (*IncomingMsg, error)
type UserBot ¶
type UserBot struct {
// contains filtered or unexported fields
}
func (*UserBot) Handle ¶
func (bot *UserBot) Handle(msg *IncomingMsg)
func (*UserBot) SetupCommands ¶
func (bot *UserBot) SetupCommands()
Click to show internal directories.
Click to hide internal directories.