-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvar.go
42 lines (41 loc) · 886 Bytes
/
var.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
package main
import (
//"gopkg.in/oleiade/lane.v1"
"github.com/bwmarrin/discordgo"
)
const (
channels int = 2 // 1 for mono, 2 for stereo
frameRate int = 48000 // audio sampling rate
frameSize int = 960 // uint16 size of each audio frame
maxBytes int = (frameSize * 2) * 2 // max size of opus data
)
type server_queue struct {
music_queue []*music_info
vc *discordgo.VoiceConnection
}
type config struct {
Token string
PREFIX string
YT_KEY string
}
type id_video struct {
kind string
videoId string
}
type music_info struct {
songname string
Autorname string
url string
text_channelId string
guildID string
channelID string
pause chan bool
stop bool
skip chan bool
s *discordgo.Session
}
var (
servers_vc = map[string]*server_queue{}
queue_block= map[string]bool{}
queue_chan = make(chan *music_info, 101)
)