Documentation
¶
Index ¶
- type Bot
- func (b *Bot) DoRefresh(_ context.Context, _ ...string) []slack.Attachment
- func (b *Bot) ReportRooms(_ context.Context, _ ...string) []slack.Attachment
- func (b *Bot) ReportRules(_ context.Context, _ ...string) []slack.Attachment
- func (b *Bot) ReportUsers(_ context.Context, _ ...string) []slack.Attachment
- func (b *Bot) Run(ctx context.Context) error
- func (b *Bot) SetHome(ctx context.Context, args ...string) []slack.Attachment
- func (b *Bot) SetRoom(ctx context.Context, args ...string) []slack.Attachment
- type Controller
- type SlackBot
- type TadoSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Tado TadoSetter // contains filtered or unexported fields }
func New ¶
func New(tado TadoSetter, s SlackBot, p poller.Poller, controller Controller, logger *slog.Logger) *Bot
func (*Bot) ReportRooms ¶
func (*Bot) ReportRules ¶
func (*Bot) ReportUsers ¶
type Controller ¶
type Controller interface {
ReportTasks() []string
}
Click to show internal directories.
Click to hide internal directories.