Remove msglog to cli

This commit is contained in:
Knut Ahlers 2021-07-12 18:04:03 +02:00
parent e97a84a5a7
commit 323fd73551
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -1,20 +0,0 @@
package main
import (
"github.com/bwmarrin/discordgo"
log "github.com/sirupsen/logrus"
)
func init() {
discordHandlers = append(discordHandlers, handleMessageDeleteLog)
}
func handleMessageDeleteLog(s *discordgo.Session, m *discordgo.MessageDelete) {
if m.Author.ID == s.State.User.ID {
// Bot was the author, do not spam
return
}
// FIXME: Do something useful with this
log.WithField("msg", m).Info("Message deleted")
}