hive

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 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 (globally).

func (*HiveCommand) RegisterWithGuild added in v0.0.36

func (c *HiveCommand) RegisterWithGuild(session *discordgo.Session, guildID string) error

RegisterWithGuild registers the /hive command with a specific guild.

func (*HiveCommand) RunHiveSummary

func (c *HiveCommand) RunHiveSummary(ctx context.Context, alert *hive.HiveSummaryAlert) error

RunHiveSummary runs a Hive summary check for a given alert.

func (*HiveCommand) UpdateChoices added in v0.0.26

func (c *HiveCommand) UpdateChoices(session *discordgo.Session) error

UpdateChoices updates the command choices by editing the existing command with fresh network data.

Jump to

Keyboard shortcuts

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