-
Notifications
You must be signed in to change notification settings - Fork 1
/
structs.go
48 lines (39 loc) · 1.07 KB
/
structs.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
package gidbig
// FROM webserver.go
// soundItem is used to represent a sound of our COLLECTIONS for html generation
type soundItem struct {
Itemprefix string
Itemcommand string
Itemsoundname string
Itemtext string
Itemshorttext string
}
// Play represents an individual use of the !airhorn command
type Play struct {
GuildID string
ChannelID string
UserID string
Sound *soundClip
// The next play to occur after this, only used for chaining sounds like anotha
Next *Play
// If true, this was a forced play using a specific airhorn sound name
Forced bool
}
// soundCollection of sound clips
type soundCollection struct {
Prefix string
Commands []string
Sounds []*soundClip
ChainWith *soundCollection
soundRange int
}
// soundClip represents a sound clip
type soundClip struct {
Name string
// Weight adjust how likely it is this song will play, higher = more likely
Weight int
// Delay (in milliseconds) for the bot to wait before sending the disconnect request
PartDelay int
// Buffer to store encoded PCM packets
buffer [][]byte
}