/
config.go
52 lines (42 loc) · 1.56 KB
/
config.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package db
type Configuration struct {
GuildID string `json:"guildID"`
WelcomeChannelID string `json:"welcomeChannelID"`
WelcomeText string `json:"welcomeText"`
WelcomeDM []string `json:"welcomeDM"`
RoleManagement RoleManagementConfiguration `json:"roleManagement"`
Hives []HiveConfiguration `json:"hives"`
LookingForPlayers []LookingForPlayersConfiguration `json:"lookingForPlayers"`
Schedules []ScheduleConfiguration `json:"schedules"`
}
type HiveConfiguration struct {
RequestChannelIDs []string `json:"requestChannelIDs"`
JunkyardCategoryID string `json:"junkyardCategoryID"`
TextCategoryID string `json:"textCategoryID"`
VoiceCategoryID string `json:"voiceCategoryID"`
Prefix string `json:"prefix"`
VoiceBitrate int `json:"voiceBitrate"`
}
type RoleManagementConfiguration struct {
RoleAdminChannelID string `json:"roleAdminChannelID"`
DefaultRole string `json:"defaultRole"`
RoleSets []RoleSet `json:"roleSets"`
}
type RoleSet struct {
Message string `json:"message"`
Roles []Role `json:"roles"`
}
type Role struct {
ID string `json:"id"`
Emoji string `json:"emoji"`
AutoApprove bool `json:"autoApprove"`
}
type LookingForPlayersConfiguration struct {
RequestChannelIDs []string `json:"requestChannelIDs"`
AdvertiseChannelID string `json:"advertiseChannelID"`
HiveChannelID string `json:"hiveChannelID"`
}
type ScheduleConfiguration struct {
ClassName string `json:"className"`
URL string `json:"url"`
}