config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListStages = map[string]string{
	"arena":                         "Arena",
	"arena (underground)":           "Arena (Underground)",
	"urban square":                  "Urban Square",
	"urban square (evening)":        "Urban Square (Evening)",
	"yakushima":                     "Yakushima",
	"coliseum of fate":              "Coliseum of Fate",
	"rebel hangar":                  "Rebel Hanger",
	"fallen destiny":                "Fallen Destiny",
	"descent into subconsciousness": "Descent into Subconsciousness",
	"sanctum":                       "Sanctum",
	"into the stratpsphere":         "Into the Stratosphere",
	"ortiz farm":                    "Ortiz Farm",
	"celebration on the seine":      "Celebration on the Seine",
	"secluded training ground":      "Secluded Training Ground",
	"elegant palace":                "Elegant Palace",
	"midnight siege":                "Midnight Siege",
	"seaside resort":                "Seaside Resort",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Startgg ConfigStartGG        `toml:"startgg"`
	Discord ConfigDiscordBot     `toml:"discordbot"`
	Roles   ConfigRolesIdDiscord `toml:"roles"`
}

func LoadConfig

func LoadConfig(file string) (Config, error)

type ConfigDiscordBot

type ConfigDiscordBot struct {
	Token   string `toml:"token"`
	GuildID string `toml:"guildID"`
	AppID   string `toml:"appID"`
}

type ConfigRolesIdDiscord

type ConfigRolesIdDiscord struct {
	Ru string `toml:"ru"`
}

type ConfigStartGG

type ConfigStartGG struct {
	Token string `toml:"token"`
}

type ConfigTournament

type ConfigTournament struct {
	Rules  RulesMatches `toml:"rules"`
	Stream StreamLobby  `toml:"stream"`
}

func LoadTournament

func LoadTournament(file string) (ConfigTournament, error)
type Logo struct {
	Img string `toml:"img"`
}

type RulesMatches

type RulesMatches struct {
	Format        int    `toml:"format"`
	Stage         string `toml:"stage"`
	Rounds        int    `toml:"rounds"`
	Duration      int    `toml:"duration"`
	Crossplatform bool   `toml:"crossplatform"`
	Waiting       int    `toml:"waiting"`
}

type StreamLobby

type StreamLobby struct {
	Area          string `toml:"area"`
	Language      string `toml:"language"`
	Conn          string `toml:"connection"`
	Crossplatform bool   `toml:"crossplatform"`
	Passcode      string `toml:"passcode"`
}

Jump to

Keyboard shortcuts

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