-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.go
More file actions
69 lines (59 loc) · 1.43 KB
/
structs.go
File metadata and controls
69 lines (59 loc) · 1.43 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package main
import (
"time"
"github.com/bwmarrin/discordgo"
"github.com/jonas747/dca"
)
type Options struct {
DiscordToken string
DiscordStatus string
DiscordPrefix string
DiscordPurgeTime int64
DiscordPlayStatus bool
YoutubeToken string
}
type Song struct {
ChannelID string
User string
ID string
VidID string
Title string
Duration string
VideoURL string
}
type SongSearch struct {
Id string
Name string
}
// Command struct for commands
type Command struct {
Name string
Description string
Execute func(s *discordgo.Session, m *discordgo.MessageCreate, args []string)
}
// VoiceInstance struct for voice connection
type VoiceInstance struct {
session *discordgo.Session
guildID string
voice *discordgo.VoiceConnection
encoder *dca.EncodeSession
stream *dca.StreamingSession
nowPlaying Song
stop bool
speaking bool
paused bool
currentUserID string // Track the user who initiated the current session
playStartTime time.Time // Track when current song started playing
}
type BadQualitySongNodes struct {
BadQualitySongNodes []BadQualitySong `json:"songs"`
BadQualityVids []BadQualityVids `json:"vids"`
}
type BadQualitySong struct {
Title string `json:"title"`
FormatNo int `json:"formatNo"`
}
type BadQualityVids struct {
Author string `json:"author"`
FormatNo int `json:"formatNo"`
}