config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	ID    string `json:"id"`
	Nick  string `json:"nick"`
	Token string `json:"token"`
	ULR   string `json:"url"`
	Debug bool   `json:"debug"`
}

Bot contains base API configuration parameters.

type Config

type Config struct {
	sync.Mutex
	BotSettings  Bot `json:"bot"`
	Bot          *botgolang.Bot
	StoppedChats map[string]bool
}

Config is common configuration struct.

func New

func New(fileName string) (*Config, error)

New returns new configuration.

Jump to

Keyboard shortcuts

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