config

package
v0.0.0-...-7f39bbd Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 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 CommandsText

type CommandsText struct {
	Description          string `yaml:"description"`
	About                string `yaml:"about"`
	StartTrackingCommand string `yaml:"start_tracking_message"`

	StartCommand struct {
		InlineKeyboard struct {
			KeyboardRow1 struct {
				Options string `yaml:"options"`
			} `yaml:"keyboard_row_1"`

			KeyboardRow3 struct {
				Settings string `yaml:"settings"`
			} `yaml:"keyboard_row_2"`

			KeyboardRow4 struct {
				GitHub string `yaml:"github"`
			} `yaml:"keyboard_row_4"`
		} `yaml:"inline_keyboard"`
	} `yaml:"start_command"`
}

func InitCommandsText

func InitCommandsText(path string) (CommandsText, error)

type Config

type Config struct {
	TelegramBotAdmins []string `required:"false"   envconfig:"TELEGRAM_BOT_ADMINS"`
	TelegramAPIURL    string   `required:"false"   envconfig:"TELEGRAM_API_URL"`
	TelegramToken     string   `required:"true"   envconfig:"TELEGRAM_TOKEN"`
	DatabaseURL       string   `required:"false"   envconfig:"DATABASE_URL"`
	FaceitAPIToken    string   `required:"false"   envconfig:"FACEIT_API_TOKEN"`
	FaceitAPISecret   string   `required:"false"   envconfig:"FACEIT_API_SECRET"`
	FaceitAPIURL      string   `required:"false"   envconfig:"FACEIT_API_URL"`
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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