From d451b9b48fe2a07e990a1feeb676e56b438c7d3d Mon Sep 17 00:00:00 2001 From: adminoo Date: Mon, 28 Mar 2022 22:20:52 +0200 Subject: [PATCH] removed debug messages --- .gitignore | 0 Dockerfile | 0 config.example.yaml | 0 core/audio.go | 0 core/commands.go | 0 core/config.go | 0 core/core_test.go | 0 core/messages.go | 2 -- core/text.go | 0 go.mod | 0 go.sum | 0 main.go | 2 +- readme.md | 0 13 files changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Dockerfile mode change 100644 => 100755 config.example.yaml mode change 100644 => 100755 core/audio.go mode change 100644 => 100755 core/commands.go mode change 100644 => 100755 core/config.go mode change 100644 => 100755 core/core_test.go mode change 100644 => 100755 core/messages.go mode change 100644 => 100755 core/text.go mode change 100644 => 100755 go.mod mode change 100644 => 100755 go.sum mode change 100644 => 100755 main.go mode change 100644 => 100755 readme.md diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/config.example.yaml b/config.example.yaml old mode 100644 new mode 100755 diff --git a/core/audio.go b/core/audio.go old mode 100644 new mode 100755 diff --git a/core/commands.go b/core/commands.go old mode 100644 new mode 100755 diff --git a/core/config.go b/core/config.go old mode 100644 new mode 100755 diff --git a/core/core_test.go b/core/core_test.go old mode 100644 new mode 100755 diff --git a/core/messages.go b/core/messages.go old mode 100644 new mode 100755 index 35e8d26..34d370a --- a/core/messages.go +++ b/core/messages.go @@ -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) diff --git a/core/text.go b/core/text.go old mode 100644 new mode 100755 diff --git a/go.mod b/go.mod old mode 100644 new mode 100755 diff --git a/go.sum b/go.sum old mode 100644 new mode 100755 diff --git a/main.go b/main.go old mode 100644 new mode 100755 index 7e4fd5b..4d6af70 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ func main() { } // Wait here until CTRL-C or other term signal is received. - log.Println("Bot is now running. Press CTRL-C to exit.") + log.Println("Bot is now running. Press CTRL-C to exit.") sc := make(chan os.Signal, 1) signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill) <-sc diff --git a/readme.md b/readme.md old mode 100644 new mode 100755