Documentation ¶
Index ¶
- Constants
- Variables
- type About
- type Bandinfo
- type Chart
- type Command
- type CommandItem
- type CrownBoard
- type Crowns
- type DeleteUser
- type Help
- type MatchData
- type Newtaste
- type Nowplaying
- type Parameter
- type Ping
- type Plays
- type Profile
- type Recent
- type Register
- type RegisterResponse
- type Taste
- type Unregister
- type Whoknows
- type Youtube
Constants ¶
const Version string = "1.4.2"
Version holds the bot's version number
Variables ¶
var ( // FontRegular is the name for the regular typed font. FontRegular = lib.LocGet("static/fonts/NotoSans-Regular.ttf") // FontBold is the name for the bold typed font. FontBold = lib.LocGet("static/fonts/NotoSans-Bold.ttf") // AlbumPositions is the album grid positions. AlbumPositions = []lib.AlbumPosition{ { X: 355, Y: 170, Shadow: lib.Shadow{ X: 350, Y: 165, R: 10, }, Info: lib.InfoText{ X: 350, Y: 340, Plays: lib.PlaysText{ X: 350, Y: 360, }, }, }, { X: 555, Y: 170, Shadow: lib.Shadow{ X: 550, Y: 165, R: 10, }, Info: lib.InfoText{ X: 550, Y: 340, Plays: lib.PlaysText{ X: 550, Y: 360, }, }, }, { X: 355, Y: 390, Shadow: lib.Shadow{ X: 350, Y: 385, R: 10, }, Info: lib.InfoText{ X: 350, Y: 560, Plays: lib.PlaysText{ X: 350, Y: 580, }, }, }, { X: 555, Y: 390, Shadow: lib.Shadow{ X: 550, Y: 385, R: 10, }, Info: lib.InfoText{ X: 550, Y: 560, Plays: lib.PlaysText{ X: 550, Y: 580, }, }, }, } // TrackPositions is the positions for track listings. TrackPositions = []lib.TrackPosition{ { X: 720, Y: 180, Plays: lib.PlaysText{ X: 735, Y: 200, }, }, { X: 720, Y: 230, Plays: lib.PlaysText{ X: 735, Y: 250, }, }, { X: 720, Y: 280, Plays: lib.PlaysText{ X: 735, Y: 300, }, }, { X: 720, Y: 330, Plays: lib.PlaysText{ X: 735, Y: 350, }, }, { X: 720, Y: 380, Plays: lib.PlaysText{ X: 735, Y: 400, }, }, { X: 720, Y: 430, Plays: lib.PlaysText{ X: 735, Y: 450, }, }, { X: 720, Y: 480, Plays: lib.PlaysText{ X: 735, Y: 500, }, }, { X: 720, Y: 530, Plays: lib.PlaysText{ X: 735, Y: 550, }, }, } )
Functions ¶
This section is empty.
Types ¶
type CommandItem ¶
type CommandItem struct { Name string Description string Aliases []string Usage string Parameters []Parameter Admin bool }
CommandItem is the base command item object for the help command.
type CrownBoard ¶
type CrownBoard struct{ Command }
CrownBoard command.
func InitCrownBoard ¶
func InitCrownBoard() CrownBoard
InitCrownBoard initializes the crownboard command.
func (CrownBoard) Register ¶
func (c CrownBoard) Register() *atlas.Command
Register registers and runs the crownboard command.
type DeleteUser ¶
type DeleteUser struct{ Command }
DeleteUser command.
func InitDeleteUser ¶
func InitDeleteUser() DeleteUser
InitDeleteUser initializes the deleteuser command.
func (DeleteUser) Register ¶
func (c DeleteUser) Register() *atlas.Command
Register registers and runs the deleteuser command.
type Nowplaying ¶
type Nowplaying struct{ Command }
Nowplaying command.
func InitNowPlaying ¶
func InitNowPlaying() Nowplaying
InitNowPlaying initializes the nowplaying command.
func (Nowplaying) Register ¶
func (c Nowplaying) Register() *atlas.Command
Register registers and runs the nowplaying command.
type Parameter ¶
type Parameter struct { Name string // parameter name Value string // value representation Description string // parameter description Required bool // is parameter required? }
Parameter is the base parameter object for the help command.
type RegisterResponse ¶
type RegisterResponse struct { Token string `json:"request_token"` Expires int32 `json:"expires"` ExpiresString string `json:"expires_string"` Error bool `json:"error"` ErrorMessage string `json:"message"` }
RegisterResponse represents the login API response body.
type Unregister ¶
type Unregister struct{ Command }
Unregister command.
func InitUnregister ¶
func InitUnregister() Unregister
InitUnregister initializes the logout command.
func (Unregister) Register ¶
func (c Unregister) Register() *atlas.Command
Register registers and runs the logout command.