piccolo

package
v0.0.0-...-15b0568 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

Bot holds various config and state of the current bot

func NewBot

func NewBot(c *utils.Config, v *version.Info) *Bot

NewBot will create an instance of a bot

func (*Bot) Start

func (b *Bot) Start()

Start will start the bot

func (*Bot) Stop

func (b *Bot) Stop()

Stop will stop the bot

type PlaylistEntry

type PlaylistEntry struct {
	Requester        *discordgo.User `json:"-"`
	RequestChannelID string          `json:"-"`
	Title            string          `json:"title"`
	VideoID          string          `json:"videoID"`
}

PlaylistEntry is an individual song in the playlist

type PlaylistJSON

type PlaylistJSON struct {
	Entries []PlaylistEntry `json:"entries"`
}

PlaylistJSON is used to handled marshalling and unmarshalling a playlist to a file on disk

Jump to

Keyboard shortcuts

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