Compare commits

..

3 Commits

Author SHA1 Message Date
Chris Sexton 5df7644229 remove more logs 2020-10-09 13:58:25 -04:00
Chris Sexton 4b95e7680c
Merge pull request #300 from velour/fixdiscordlog
discord: remove noisy log line
2020-10-09 13:41:11 -04:00
Chris Sexton 696ca8408d discord: remove noisy log line 2020-10-09 13:34:07 -04:00
2 changed files with 0 additions and 7 deletions

View File

@ -18,10 +18,6 @@ import (
) )
func (b *bot) Receive(conn Connector, kind Kind, msg msg.Message, args ...interface{}) bool { func (b *bot) Receive(conn Connector, kind Kind, msg msg.Message, args ...interface{}) bool {
log.Debug().
Interface("msg", msg).
Msg("Received event")
// msg := b.buildMessage(client, inMsg) // msg := b.buildMessage(client, inMsg)
// do need to look up user and fix it // do need to look up user and fix it
if kind == Message && strings.HasPrefix(msg.Body, "help") && msg.Command { if kind == Message && strings.HasPrefix(msg.Body, "help") && msg.Command {

View File

@ -192,7 +192,6 @@ func (d *Discord) Serve() error {
} }
func (d *Discord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { func (d *Discord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
log.Debug().Msgf("discord message: %+v", m)
if m.Author.ID == s.State.User.ID { if m.Author.ID == s.State.User.ID {
return return
} }
@ -216,7 +215,5 @@ func (d *Discord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate
Time: tStamp, Time: tStamp,
} }
log.Debug().Interface("m", m).Interface("msg", msg).Msg("message received")
d.event(d, bot.Message, msg) d.event(d, bot.Message, msg)
} }