Documentation
¶
Index ¶
Constants ¶
View Source
const MAX_ITER = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
Running bool
HelpEnabled bool
Prefix string
ChannelIDs map[string]string
// contains filtered or unexported fields
}
func NewBot ¶
func NewBot(s BotSettings) *Bot
func (*Bot) GetHelpString ¶
func (*Bot) SendMessage ¶ added in v0.4.0
type BotSettings ¶ added in v0.3.0
type Command ¶
type Command struct {
Name string
Aliases []string
Description string
Op func(ci CommandInput)
ArgNames []string
}
type CommandInput ¶ added in v0.2.0
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
func (*Controller) HasBotsRunning ¶
func (c *Controller) HasBotsRunning() bool
func (*Controller) RegisterBot ¶
func (c *Controller) RegisterBot(key string, b *Bot)
func (*Controller) RunBot ¶
func (c *Controller) RunBot(key string)
func (*Controller) RunBots ¶
func (c *Controller) RunBots()
func (*Controller) Start ¶
func (c *Controller) Start()
func (*Controller) StopBot ¶
func (c *Controller) StopBot(key string)
func (*Controller) StopBots ¶
func (c *Controller) StopBots()
type CronHandler ¶ added in v0.4.0
type CronHandler struct {
Messages []*CronMessage
// contains filtered or unexported fields
}
func NewCronHandler ¶ added in v0.4.0
func NewCronHandler(b *Bot) *CronHandler
func (*CronHandler) AddMessage ¶ added in v0.4.0
func (c *CronHandler) AddMessage(m CronMessage)
func (*CronHandler) AddMessages ¶ added in v0.4.0
func (c *CronHandler) AddMessages(m []CronMessage)
func (*CronHandler) LogEntries ¶ added in v0.4.0
func (c *CronHandler) LogEntries()
func (*CronHandler) Start ¶ added in v0.4.0
func (c *CronHandler) Start()
func (*CronHandler) Stop ¶ added in v0.4.0
func (c *CronHandler) Stop()
type CronMessage ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.