removed debug messages
This commit is contained in:
0
core/audio.go
Normal file → Executable file
0
core/audio.go
Normal file → Executable file
0
core/commands.go
Normal file → Executable file
0
core/commands.go
Normal file → Executable file
0
core/config.go
Normal file → Executable file
0
core/config.go
Normal file → Executable file
0
core/core_test.go
Normal file → Executable file
0
core/core_test.go
Normal file → Executable file
2
core/messages.go
Normal file → Executable file
2
core/messages.go
Normal file → Executable file
@ -121,7 +121,6 @@ func MessageAudio(s *discordgo.Session, m *discordgo.MessageCreate, message stri
|
||||
}
|
||||
|
||||
func MessageVocal(s *discordgo.Session, m *discordgo.MessageCreate, message string) {
|
||||
log.Println("We get there (MessageVocal)")
|
||||
// Ignore all messages created by the bot itself
|
||||
// This isn't required in this specific example but it's a good practice.
|
||||
if m.Author.ID == s.State.User.ID {
|
||||
@ -148,7 +147,6 @@ func MessageVocal(s *discordgo.Session, m *discordgo.MessageCreate, message stri
|
||||
// Look for the message sender in that guild's current voice states.
|
||||
for _, vs := range g.VoiceStates {
|
||||
if vs.UserID == m.Author.ID {
|
||||
log.Println("We get there (MessageVocal) voice state for loop")
|
||||
err = playSound(s, g.ID, vs.ChannelID, out)
|
||||
if err != nil {
|
||||
fmt.Println("Error playing sound:", err)
|
||||
|
||||
0
core/text.go
Normal file → Executable file
0
core/text.go
Normal file → Executable file
Reference in New Issue
Block a user