Browse Source

Disable printing raw messages to log

master
Noah Pederson 1 year ago
parent
commit
70455973ce
  1. 4
      gogetmehentai.go

4
gogetmehentai.go

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