Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v1.1.1"
Version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Config *Config // contains filtered or unexported fields }
A Bot is an instance of zenbot.
func (*Bot) SendMessage ¶
SendMessage sends a message to a Slack channel.
type Config ¶
type Config struct { Slack *Slack Debug bool Log *log.Log TimeoutDuration time.Duration ChannelWhitelist StringList }
Config contains all the necessary configs for a zenbot instance.
type StringList ¶ added in v1.1.1
type StringList map[string]struct{}
func (*StringList) Set ¶ added in v1.1.1
func (sl *StringList) Set(value string) error
func (*StringList) String ¶ added in v1.1.1
func (sl *StringList) String() string
Click to show internal directories.
Click to hide internal directories.