Browse Source

Disable printing raw messages to log

master
Noah Pederson 11 months ago
parent
commit
70455973ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      gogetmehentai.go

+ 2
- 2
gogetmehentai.go View File

@ -32,11 +32,11 @@ func main() {
//Listen for precense update
discord.AddHandler(func(s *discordgo.Session, m *discordgo.PresenceUpdate) {
log.Print("User: ", m.User.Username, "\nPrecense: ", m.Presence.Status)
//log.Print("User: ", m.User.Username, "\nPrecense: ", m.Presence.Status)
})
discord.AddHandler(func(s *discordgo.Session, m *discordgo.MessageCreate) {
log.Print("Author: ", m.Author.Username, "\n Content: ", m.Content)
//log.Print("Author: ", m.Author.Username, "\n Content: ", m.Content)
if len(m.Content) > 0 && string(m.Content[0]) == cfg.AppConfig.CommandPrefix {
commands.ParseCommand(s, m.Message)


Loading…
Cancel
Save