From 323fd735516b31b29131ede702e9ae8ca08af5c7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 12 Jul 2021 18:04:03 +0200 Subject: [PATCH] Remove msglog to cli --- mod_msgLog.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 mod_msgLog.go diff --git a/mod_msgLog.go b/mod_msgLog.go deleted file mode 100644 index a077757..0000000 --- a/mod_msgLog.go +++ /dev/null @@ -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") -}