config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "/data/options.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramToken string `json:"TELEGRAM_TOKEN"`
	TelegramAdmin string `json:"TELEGRAM_ADMIN_ID"`

	TelegramAdminID int64

	DeleteJoinMessages  bool `json:"DELETE_JOIN"`
	DeleteLeaveMessages bool `json:"DELETE_LEAVE"`

	RestictOnJoin      bool `json:"RESTRICT_ON_JOIN"`
	RestrictOnJoinTime int  `json:"RESTRICT_ON_JOIN_TIME"`

	AllowedChatIDs     string  `json:"ALLOWED_CHAT_IDS"`
	AllowedChatIDsList []int64 `json:"-"`

	YandexToken string `json:"YANDEX_TOKEN"`

	Debug bool `json:"DEBUG"`
}

Config ...

func InitConfig

func InitConfig(args []string) (*Config, error)

Jump to

Keyboard shortcuts

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