removed debug messages
This commit is contained in:
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
Dockerfile
Normal file → Executable file
0
Dockerfile
Normal file → Executable file
0
config.example.yaml
Normal file → Executable file
0
config.example.yaml
Normal file → Executable file
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) {
|
func MessageVocal(s *discordgo.Session, m *discordgo.MessageCreate, message string) {
|
||||||
log.Println("We get there (MessageVocal)")
|
|
||||||
// Ignore all messages created by the bot itself
|
// Ignore all messages created by the bot itself
|
||||||
// This isn't required in this specific example but it's a good practice.
|
// This isn't required in this specific example but it's a good practice.
|
||||||
if m.Author.ID == s.State.User.ID {
|
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.
|
// Look for the message sender in that guild's current voice states.
|
||||||
for _, vs := range g.VoiceStates {
|
for _, vs := range g.VoiceStates {
|
||||||
if vs.UserID == m.Author.ID {
|
if vs.UserID == m.Author.ID {
|
||||||
log.Println("We get there (MessageVocal) voice state for loop")
|
|
||||||
err = playSound(s, g.ID, vs.ChannelID, out)
|
err = playSound(s, g.ID, vs.ChannelID, out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error playing sound:", err)
|
fmt.Println("Error playing sound:", err)
|
||||||
|
|||||||
0
core/text.go
Normal file → Executable file
0
core/text.go
Normal file → Executable file
2
main.go
Normal file → Executable file
2
main.go
Normal file → Executable file
@ -36,7 +36,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wait here until CTRL-C or other term signal is received.
|
// 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)
|
sc := make(chan os.Signal, 1)
|
||||||
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
|
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
|
||||||
<-sc
|
<-sc
|
||||||
|
|||||||
Reference in New Issue
Block a user