config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load initializes the configuration

Types

type Config

type Config struct {
	DiscordToken                  string
	CommandPrefix                 string
	MaximumAudioDurationInSeconds int
	MaximumQueueSize              int
	BotAdmins                     []string
}

func Get

func Get() *Config

Get returns the configuration

func (*Config) IsUserBotAdmin

func (config *Config) IsUserBotAdmin(userId string) bool

Jump to

Keyboard shortcuts

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