bot

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnorePrivateMessages added in v1.1.10

func IgnorePrivateMessages(
	handler func(*discordgo.Session, *discordgo.MessageCreate),
) func(*discordgo.Session, *discordgo.MessageCreate)

func IgnoreSelfMessages added in v1.1.10

func IgnoreSelfMessages(
	handler func(*discordgo.Session, *discordgo.MessageCreate),
) func(*discordgo.Session, *discordgo.MessageCreate)

Types

type Bot

type Bot interface {
	Bot() error
}

Bot what a bot does.

func NewQuartermasterBot

func NewQuartermasterBot(
	log logger,
	client *http.Client,
	tokenSource token.Source,
	discord *discordgo.Session,
	channelID string,
	corporationID, allianceID int32,
	repository botRepository,
	checkInterval, notifyInterval time.Duration,
) Bot

NewQuartermasterBot returns new bot instance.

Jump to

Keyboard shortcuts

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