hive

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL