cfg

package
v0.0.0-...-2cb72f2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneralDebug = "general.debug"
	GeneralGuild = "general.guild"

	BotPrefix = "bot.prefix"
	BotToken  = "bot.token"

	UserEmail    = "user.email"
	UserPassword = "user.password"
	UserToken    = "user.token"

	EmailDomain   = "email.domain"
	EmailPort     = "email.port"
	EmailAddress  = "email.address"
	EmailPassword = "email.password"

	DbFile = "database.file"

	TriggersAddress  = "triggers.address"
	TriggersPassword = "triggers.password"

	RoleVerified  = "roles.verified"
	RoleModerator = "roles.moderator"
	RoleOnAir     = "roles.onAir"

	ChannelStudio      = "channels.studio"
	ChannelControlRoom = "channels.controlRoom"

	AutoplayAnnounce      = "autoplay.announce"
	AutoplayCommands      = "autoplay.commands"
	AutoplayIgnoredUsers  = "autoplay.ignoredUsers"
	AutoplaySlotUp        = "autoplay.slotUp"
	AutoplayUsersInStudio = "autoplay.usersInStudio"
	AutoplayNagCooldown   = "autoplay.nagCooldown"

	VerificationUserUnverified = "verification.userUnverified"
	VerificationEmailNotFound  = "verification.emailNotFound"
	VerificationEmailTaken     = "verification.takenEmail"
	VerificationEmailSent      = "verification.emailSent"
	VerificationInvalidEmail   = "verification.invalidEmail"
	VerificationEmailSubject   = "verification.emailSubject"
	VerificationEmailContents  = "verification.emailContentsFile"
	VerificationNotConfirmed   = "verification.confirmationFailed"
	VerificationAllowedEmails  = "verification.allowedEmailsFile"
	VerificationConfirmed      = "verification.confirmed"

	MsgSyntaxError           = "msg.syntaxError"
	MsgInvalidTime           = "msg.invalidTime"
	MsgCmdInvite             = "msg.inviteInvited"
	MsgCmdRegisterWrongRole  = "msg.registerWrongRole"
	MsgCmdRegisterNewShow    = "msg.registerNewShow"
	MsgCmdRegisterReplaced   = "msg.registerReplaced"
	MsgCmdShowNotFound       = "msg.showNoShowFound"
	MsgCmdShowFound          = "msg.showShowFound"
	MsgCmdShowsEmbedSet      = "msg.showsembedSet"
	MsgCmdShowsEmbedReplaced = "msg.showsembedReplaced"
	MsgCmdUninvite           = "msg.uninviteUninvited"
	MsgCmdUnregisterNotFound = "msg.unregisterNoShowFound"
	MsgCmdUnregisterDeleted  = "msg.unregisterShowDeleted"
	MsgCmdAddHostNotHost     = "msg.addHostNotHost"
	MsgCmdAddHostDone        = "msg.addHostDone"
	MsgCmdEmailNotInList     = "msg.checkEmailNotInList"
	MsgCmdEmailNotLinked     = "msg.checkEmailNotLinked"
	MsgCmdEmailLinked        = "msg.checkEmailLinked"

	MiscCurrentListenersUrl = "misc.listenersUrl"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(path string) (*Config, error)

Loads a new config struct.

func (*Config) GetBool

func (config *Config) GetBool(key string) bool

Gets a boolean from the config, given a key.

func (*Config) GetFloat

func (config *Config) GetFloat(key string) float64

Gets a float from the config, given a key.

func (*Config) GetInt

func (config *Config) GetInt(key string) int64

Gets an int from the config, given a key.

func (*Config) GetString

func (config *Config) GetString(key string) string

Gets a string from the config, given a key.

func (*Config) GetStrings

func (config *Config) GetStrings(key string) []string

Gets a slice of strings from the config, given a key.

Jump to

Keyboard shortcuts

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