userbot

package
v0.0.0-...-e9c67b5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunningTimers

func RunningTimers(bot *UserBot, cmd utils.Command) error

func Start

func Start()

func StartTimer

func StartTimer(bot *UserBot, cmd utils.Command) error

func StartedTasks

func StartedTasks(bot *UserBot, cmd utils.Command) error

func StopTimer

func StopTimer(bot *UserBot, cmd utils.Command) error

func TimerStatus

func TimerStatus(bot *UserBot, cmd utils.Command) error

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 HandlerFunc

type HandlerFunc func(*UserBot, utils.Command) error

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()

Jump to

Keyboard shortcuts

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