config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 4 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"`
	BotAdmins             []string      `json:"botAdmins"`
	FeatureRequestChannel string        `json:"featureRequestChannel"`
	BugReportChannel      string        `json:"bugReportChannel"`
	MongoConnectionString string        `json:"mongoConnectionString"`
	JDoodle               JDoodleConfig `json:"jdoodle"`
}

Config represents the bot configuration

var CurrentConfig *Config = new(Config)

CurrentConfig holds the current bot configuration

type JDoodleConfig

type JDoodleConfig struct {
	ClientID     string `json:"clientID"`
	ClientSecret string `json:"clientSecret"`
}

JDoodleConfig represents the configuration of a JDoodle subscription

Jump to

Keyboard shortcuts

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