config

package
v0.0.0-...-b1846a3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDataDir = "./data/"

Variables

View Source
var EnvPrefix = "BOT_"

Functions

func DoesFileExist

func DoesFileExist(file string) bool

Types

type Auth

type Auth struct {
	Token string
}

type Bot

type Bot struct {
	Debug        bool
	Prefix       []string
	LogWebhookID string
	Admins       []string
	Color        int
}

type Config

type Config struct {
	Auth Auth
	Bot  Bot
	DB   DBConf
}

func Load

func Load() (App Config)

func LoadFile

func LoadFile(file string) Config

type DBConf

type DBConf struct {
	Name string
	User string
	Pass string
	Host string
}

Jump to

Keyboard shortcuts

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