Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnv ¶
func LoadEnv() error
LoadEnv loads environment variables from .env file and creates it if it doesn't exist
func ValidateEnv ¶
func ValidateEnv() error
ValidateEnv validates all environment variables needed for the bot to work
Types ¶
type IncorrectEnvVariableError ¶
type IncorrectEnvVariableError struct {
EnvVariable string
}
IncorrectEnvVariableError is an error that is returned when an environment variable has an incorrect value
func (*IncorrectEnvVariableError) Error ¶
func (e *IncorrectEnvVariableError) Error() string
Click to show internal directories.
Click to hide internal directories.