Documentation
¶
Index ¶
- type HiveCommand
- func (c *HiveCommand) Handle(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *HiveCommand) Name() string
- func (c *HiveCommand) Queue() *queue.AlertQueue
- func (c *HiveCommand) Register(session *discordgo.Session) error
- func (c *HiveCommand) RunHiveSummary(ctx context.Context, alert *hive.HiveSummaryAlert) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HiveCommand ¶
type HiveCommand struct {
// contains filtered or unexported fields
}
HiveCommand handles the /hive command.
func NewHiveCommand ¶
func NewHiveCommand(log *logrus.Logger, bot common.BotContext) *HiveCommand
NewHiveCommand creates a new hive command.
func (*HiveCommand) Handle ¶
func (c *HiveCommand) Handle(s *discordgo.Session, i *discordgo.InteractionCreate)
Handle handles the command.
func (*HiveCommand) Name ¶
func (c *HiveCommand) Name() string
Name returns the name of the command.
func (*HiveCommand) Queue ¶
func (c *HiveCommand) Queue() *queue.AlertQueue
Queue returns the alert queue.
func (*HiveCommand) Register ¶
func (c *HiveCommand) Register(session *discordgo.Session) error
Register registers the command with Discord.
func (*HiveCommand) RunHiveSummary ¶
func (c *HiveCommand) RunHiveSummary(ctx context.Context, alert *hive.HiveSummaryAlert) error
RunHiveSummary runs a Hive summary check for a given alert.
Click to show internal directories.
Click to hide internal directories.