func LoadConfig() (BotConfig, error) {
	f, err := os.Open(".config")
	if err != nil {
		return BotConfig{}, err
	}
	var botConfig BotConfig
	decoder := json.NewDecoder(f)
	err = decoder.Decode(&botConfig)
	if err != nil {
		return BotConfig{}, err
	}
	fmt.Println("successfully loaded .config")
	return botConfig, nil
}
// LoadConfig loads bot configuration variables
// from the following file in main directory:
//
// .config
LoadConfig loads bot configuration variables
from the following file in main directory.

.config
// LoadConfig loads bot configuration variables // from the following file in main directory : // // . config
func LoadConfig() (BotConfig, error) {
	f, err := os.Open(".config")
	if err != nil {
		return BotConfig{}, err
	}
	var botConfig BotConfig
	decoder := json.NewDecoder(f)
	err = decoder.Decode(&botConfig)
	if err != nil {
		return BotConfig{}, err
	}
	fmt.Println("successfully loaded .config")
	return botConfig, nil
}
func LoadConfig ( ) ( BotConfig , error ) { f , err := os . Open ( " " ) if err != nil { return BotConfig { } , err } var botConfig BotConfig decoder := json . NewDecoder ( f ) err = decoder . Decode ( & botConfig ) if err != nil { return BotConfig { } , err } fmt . Println ( " " ) return botConfig , nil }
LoadConfig loads bot configuration variables
from the following file in main directory.
LoadConfig loads bot configuration variables from the following file in main directory .