config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load loads the bot configuration

Types

type Config

type Config struct {
	BotToken              string `json:"botToken"`
	InitialAdminID        string `json:"initialAdminID"`
	FeatureRequestChannel string `json:"featureRequestChannel"`
	BugReportChannel      string `json:"bugReportChannel"`
	MongoConnectionString string `json:"mongoConnectionString"`
}

Config represents the bot configuration

var CurrentConfig *Config = new(Config)

CurrentConfig holds the current bot configuration

Jump to

Keyboard shortcuts

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