verdansk

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	X_APIKey string
)

Functions

func CommandVerdansk

func CommandVerdansk(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleAccountSelection

func HandleAccountSelection(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleActivisionIDModal

func HandleActivisionIDModal(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleMethodSelection

func HandleMethodSelection(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleVerdanskCommand

func HandleVerdanskCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

func InitCleanupRoutine

func InitCleanupRoutine()

func StartVerdanskCleanupRoutine

func StartVerdanskCleanupRoutine()

Types

type ImageDownload

type ImageDownload struct {
	Name string
	URL  string
	Data []byte
	Err  error
}

type PlayerPreferences

type PlayerPreferences struct {
	Visible bool `json:"visible"`
}

type StatValue

type StatValue struct {
	OrderValue  *int   `json:"order_value"`
	StringValue string `json:"string_value"`
}

type VerdanskConfig

type VerdanskConfig struct {
	EnabledInGuilds  bool
	MaxConcurrentDLs int
	MaxImageQuality  int
	EnableOptimize   bool
	APIRateLimit     time.Duration
}

type VerdanskSession

type VerdanskSession struct {
	UserID           string
	ActivisionID     string
	AccountID        uint
	StartTime        time.Time
	DownloadedStats  bool
	ImagesDownloaded int
	TempDir          string
	ZipFile          string
	State            string
	ErrorMessage     string
	ConcurrentJobs   int
}

type VerdanskStats

type VerdanskStats map[string]StatValue

Jump to

Keyboard shortcuts

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