bot

package
v0.0.0-...-9162f8a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Host             string
	Network          string
	Channel          string
	CompanionChannel string
	PackageID        int
}

Package information to trigger dcc send

type XdccBot

type XdccBot struct {
	// contains filtered or unexported fields
}

XdccBot handles the download of a dcc package automatically

func New

func New() *XdccBot

New creates a new XdccBot

func (*XdccBot) Get

func (bot *XdccBot) Get(pack Package, updates func(*xdcc.DownloadUpdate))

Get retrieves a file via xdcc with the given package information

Jump to

Keyboard shortcuts

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