config

package
v0.1.1-0...-520dac2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(file string)

Types

type Config

type Config struct {
	Plugins Plugins
	Discord Discord
}

Config contains OptiFur configuration

func Get

func Get() *Config

Get returns the config, loading it if needed

type Discord

type Discord struct {
	// Name is the name of the bot
	Name string
	// Avatar is the bot avatar file path
	Avatar string
	// Token is the token used to connect to discord
	Token string
}

Discord contains discord related config

type Plugins

type Plugins struct {
	// Folder is the folder containing plugins
	Folder string
	// Watch defines whether the plugin folder should be watched.
	// If true, you will be able to add new plugin or update existing plugins
	Watch bool
}

Plugins contains plugins config

Jump to

Keyboard shortcuts

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