mirror of https://github.com/velour/catbase.git
remove more logs
This commit is contained in:
parent
4b95e7680c
commit
5df7644229
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue