config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DiscordToken            string            `koanf:"discord.token" description:"discord bot token from the discord developer website"`
	DiscordChannel          string            `koanf:"discord.channel" description:"channel id that the bot works on"`
	DiscordChannelSnowflake discord.ChannelID `koanf:"-"`
	EconAddress             string            `koanf:"econ.address" description:"ip:port"`
	EconPassword            string            `koanf:"econ.password" description:"econ server password"`
}

func NewConfig

func NewConfig() Config

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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