1
0

removed debug messages

This commit is contained in:
2022-03-28 22:20:52 +02:00
parent 939692e531
commit d451b9b48f
13 changed files with 1 additions and 3 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
Dockerfile Normal file → Executable file
View File

0
config.example.yaml Normal file → Executable file
View File

0
core/audio.go Normal file → Executable file
View File

0
core/commands.go Normal file → Executable file
View File

0
core/config.go Normal file → Executable file
View File

0
core/core_test.go Normal file → Executable file
View File

2
core/messages.go Normal file → Executable file
View 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
View File

0
go.mod Normal file → Executable file
View File

0
go.sum Normal file → Executable file
View File

2
main.go Normal file → Executable file
View File

@ -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

0
readme.md Normal file → Executable file
View File