forked from UCCNetsoc/whodis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.go
24 lines (19 loc) · 817 Bytes
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package config
import "github.com/spf13/viper"
func initDefaults() {
viper.SetDefault("discord.token", "")
viper.SetDefault("discord.app.id", "")
viper.SetDefault("discord.member.role", "Member")
viper.SetDefault("discord.additional.role", "")
viper.SetDefault("discord.bot.invite", "")
viper.SetDefault("discord.guild.members.channel", map[string]string{})
viper.SetDefault("discord.channel.default", "general")
viper.SetDefault("discord.guild.members.welcome", map[string]string{})
viper.SetDefault("discord.welcome.default", "Thanks for registering!")
viper.SetDefault("api.url", "")
viper.SetDefault("api.port", "")
viper.SetDefault("api.secret", "")
viper.SetDefault("oauth.google.id", "")
viper.SetDefault("oauth.google.secret", "")
viper.SetDefault("oauth.google.domain", "umail.ucc.ie")
}