Documentation ¶
Index ¶
- type Bot
- func (b *Bot) GetLastSeenCL(ctx context.Context) (int, error)
- func (b *Bot) GoTimeFM()
- func (b *Bot) HandleMessage(event *slack.MessageEvent)
- func (b *Bot) Init(ctx context.Context, rtm *slack.RTM, span *trace.Span) error
- func (b *Bot) MonitorGerrit(duration time.Duration)
- func (b *Bot) TeamJoined(event *slack.TeamJoinEvent)
- type Client
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot structure
func NewBot ¶
func NewBot(slackBotAPI *slack.Client, dsClient *datastore.Client, traceClient *trace.Client, twitterAPI *anaconda.TwitterApi, httpClient Client, gerritLink, name, token, version string, devMode bool, log Logger) *Bot
NewBot will create a new Slack bot
func (*Bot) HandleMessage ¶
func (b *Bot) HandleMessage(event *slack.MessageEvent)
HandleMessage will process the incoming message and repspond appropriately
func (*Bot) MonitorGerrit ¶
MonitorGerrit handles the Gerrit changes
func (*Bot) TeamJoined ¶
func (b *Bot) TeamJoined(event *slack.TeamJoinEvent)
TeamJoined is called when the someone joins the team
Click to show internal directories.
Click to hide internal directories.