config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Lang map[string]Strings
)

Functions

func VerifyGuild

func VerifyGuild(guild *Guild) error

You should call voices.Verify before running this!

Types

type Config

type Config struct {
	Debug   bool
	Replace struct {
		Before map[string]string `yaml:",flow"`
		After  map[string]string `yaml:",flow"`
	}
	Help    string
	Discord struct {
		Token  string
		Status string
		Retry  int
	}
	Db struct {
		Kind string
		Path string
	}
	Voices struct {
		Retry  int
		Watson struct {
			Enabled bool
			Token   string
			Api     string
		}
		Gtts struct {
			Enabled bool
		}
		Gcp struct {
			Enabled bool
			Token   string
		}
		Azure struct {
			Enabled bool
			Key     string
			Region  string
		}
		VoiceText struct {
			Enabled bool
			Token   string
		}
		Voicevox struct {
			Enabled bool
			Api     string
		}
		Coeiroink struct {
			Enabled bool
			Api     string
		}
		AquestalkProxy struct {
			Enabled bool
			Api     string
		}
	}
	Guild Guild
	User  User
}
var CurrentConfig Config

type Guild

type Guild struct {
	Prefix       string
	Lang         string
	MaxChar      int
	Voice        Voice
	ReadBots     bool
	ReadName     bool
	ReadAllUsers bool
	Policy       string
	PolicyList   map[string]string
	Replace      map[string]string
}

type Strings

type Strings struct {
	Lang  string
	Help  string
	Error errorstr
}

type User

type User struct {
	Voice Voice
	Name  string
}

type Voice

type Voice struct {
	Source string
	Type   string
}

Jump to

Keyboard shortcuts

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