discord

package
v0.0.0-...-5f0ac47 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = make(tCommands)

Functions

func PrintCommands

func PrintCommands() []string

func RegisterCommand

func RegisterCommand(cmd Command,

	fn func(*discordgo.Session, *discordgo.MessageCreate))

Types

type Bot

type Bot struct {
	Name          string `json:"name"`
	Token         string `json:"token"`
	Prefix        string `json:"prefix"`
	Status        string `json:"status"`
	SpotifyID     string `json:"spotifyid"`
	SpotifySecret string `json:"spotifysecret"`
	Spotify       *apis.Spotify
}

func GetBot

func GetBot() *Bot

func (*Bot) ParseConfig

func (bot *Bot) ParseConfig(path string)

func (*Bot) Start

func (bot *Bot) Start()

type Command

type Command struct {
	Name string
	Desc string
}

Jump to

Keyboard shortcuts

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