hypebot

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token          string
	BotID          string
	GuildID        string
	RemoveCommands bool
)

Variables used for command line parameters

Functions

This section is empty.

Types

type HypeBot

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

func NewHypeBot

func NewHypeBot(db *sql.DB) (hb *HypeBot, err error)

func (*HypeBot) Run

func (hb *HypeBot) Run() chan os.Signal

func (*HypeBot) Stop added in v1.5.6

func (hb *HypeBot) Stop(sig chan os.Signal) error

type VideoMetaData

type VideoMetaData struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	OriginalURL string `json:"original_url"`
	UploadDate  string `json:"upload_date"`
	Duration    uint64 `json:"duration"`
}

Jump to

Keyboard shortcuts

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