clearQueue method implemented for testing purposes

This commit is contained in:
da
2017-08-03 18:33:33 +02:00
parent 207fce5166
commit 1334096029
2 changed files with 13 additions and 1 deletions
+8
View File
@@ -369,6 +369,14 @@ func playSound(play *Play, vc *discordgo.VoiceConnection) (err error) {
return nil
}
func clearQueue() {
for key, _ := range queues {
delete(queues, key)
}
discord.Close()
discord.Open()
}
func onReady(s *discordgo.Session, event *discordgo.Ready) {
log.Info("Received READY payload.")
}