package main import ( "encoding/json" "os" ) type Embed struct { Message string QuestionsTitle string QuestionsText string BugsTitle string BugsText string Image string } type Config struct { Admins []string ServerID string LockedRoleID string Token string WelcomeChannel string GeneralChannel string SendWelcomeDM bool RequireAccept bool ComplaintReceivedMessage string ModChannel string WelcomeEmbed Embed RoleCommands map[string]string } func readConfig() Config { file, _ := os.Open("config.json") conf := Config{} json.NewDecoder(file).Decode(&conf) file.Close() return conf }