mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 10:21:22 +00:00
Remove msglog to cli
This commit is contained in:
parent
e97a84a5a7
commit
323fd73551
1 changed files with 0 additions and 20 deletions
|
@ -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")
|
|
||||||
}
|
|
Loading…
Reference in a new issue