config

package
v0.0.0-...-554ec09 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Types

type Config

type Config struct {
	BotToken     string `yaml:"bot_token"`
	MongoURI     string `yaml:"mongo_uri"`
	GuildID      string `yaml:"guild_id"`
	Transactions string `yaml:"transactions_channel_id"`
	Suspensions  string `yaml:"suspensions_channel_id"`
	FORoleID     string `yaml:"fo_role_id"`
}
var (
	Cfg *Config
)

func NewConfig

func NewConfig(filename string) (*Config, error)

Jump to

Keyboard shortcuts

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