config

package
v0.0.0-...-c3d50c6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Path string

	SimpleCommands map[string]string
	Permissions    map[string]*multiplexer.CommandPermissions
}

BotConfig defines the configuration container for the bot

func Get

func Get(path string) (*BotConfig, error)

Get loads the config from the json file at the path specified

func (*BotConfig) Update

func (c *BotConfig) Update() error

type BotPermissions

type BotPermissions struct {
	RoleIDs map[string][]string
	ChanIDs map[string][]string
	UserIDs map[string][]string
}

BotPermissions contains the permission maps for roles, channels, and users based on the config file.

Jump to

Keyboard shortcuts

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