-
Notifications
You must be signed in to change notification settings - Fork 2
/
templateInfo.go
31 lines (28 loc) · 1.16 KB
/
templateInfo.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
package models
// TemplateInfo describes info about chat template WITHOUT history
type TemplateInfo struct {
ChannelID string `json:"channelID"`
CommandName string `json:"commandName"`
TemplateInfoBody `bson:",inline"`
}
type TemplateInfoBody struct {
ShowOnline bool `json:"showOnline"`
ShowOffline bool `json:"showOffline"`
PreventDebounce bool `json:"preventDebounce"`
PreventRedirect bool `json:"preventRedirect"`
OnlyPrivate bool `json:"onlyPrivate"`
AliasTo string `json:"aliasTo"`
Template string `json:"template"`
IntegerRandomizer TemplateIntegerRandomizer `json:"integerRandomizer"`
StringRandomizer TemplateStringRandomizer `json:"stringRandomizer"`
}
type TemplateIntegerRandomizer struct {
Enabled bool `json:"enabled"`
TimeoutAfter bool `json:"timeoutAfter"`
LowerLimit int `json:"lowerLimit"`
UpperLimit int `json:"upperLimit"`
}
type TemplateStringRandomizer struct {
Enabled bool `json:"enabled"`
Strings []string `json:"strings"`
}