wotoConfig

package
v0.0.0-...-1fee9d7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockExpirationDays

func GetBlockExpirationDays() time.Duration

func GetBlockExpirationString

func GetBlockExpirationString() string

func GetBotToken

func GetBotToken() string

func GetCmdPrefixes

func GetCmdPrefixes() []rune

func GetTargetChat

func GetTargetChat() int64

func GetWorkingChatId

func GetWorkingChatId() int64

Types

type AnonimasuRobotConfig

type AnonimasuRobotConfig struct {
	BotToken            string `section:"main" key:"bot_token"`
	TargetChat          int64  `section:"main" key:"target_chat"`
	BlockExpirationDays int    `section:"main" key:"block_expiration_days"`
}
var ConfigSettings *AnonimasuRobotConfig

func LoadConfig

func LoadConfig() (*AnonimasuRobotConfig, error)

func ParseConfig

func ParseConfig(configFile string) (*AnonimasuRobotConfig, error)

func (*AnonimasuRobotConfig) GetBotToken

func (c *AnonimasuRobotConfig) GetBotToken() string

Jump to

Keyboard shortcuts

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