Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProgrammingQuoteName = "prog-quote-bot" CatQuoteName = "cat-quote-bot" )
View Source
const BTCName = "btc-bot"
View Source
const HolidayName = "holiday-bot"
View Source
const HueName = "hue-bot"
View Source
const TriviaName = "trivia-bot"
View Source
const (
WttrName = "wttr-bot"
)
Variables ¶
View Source
var ErrNotExists = errors.New("no such bot")
Functions ¶
Types ¶
type Bot ¶
func NewBotFunc ¶
type BotCollection ¶
type BotCollection struct {
// contains filtered or unexported fields
}
func NewBotCollection ¶
func NewBotCollection(name string) *BotCollection
func (*BotCollection) AddBot ¶
func (c *BotCollection) AddBot(command string, bot Bot)
func (*BotCollection) Commands ¶
func (c *BotCollection) Commands() string
type HolidayBot ¶
type HolidayBot struct {
// contains filtered or unexported fields
}
func NewHolidayBot ¶
func NewHolidayBot(countryCode string) *HolidayBot
type TriviaBot ¶
type TriviaBot struct {
// contains filtered or unexported fields
}
func NewTriviaBot ¶
func NewTriviaBot() *TriviaBot
Click to show internal directories.
Click to hide internal directories.