Browse Source

Log deleted link

master
Gregory Rudolph 2 years ago
parent
commit
f5c59af2b4
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      discordMessage.go

1
discordMessage.go

@ -64,6 +64,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
if !safe { if !safe {
s.ChannelMessageSend(m.ChannelID, "That domain is not approved by the admins. Please contact Admins if the domain should be whitelisted.") s.ChannelMessageSend(m.ChannelID, "That domain is not approved by the admins. Please contact Admins if the domain should be whitelisted.")
s.ChannelMessageDelete(m.ChannelID, m.ID) s.ChannelMessageDelete(m.ChannelID, m.ID)
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("DELETED [%+v]: %+v", m.Author.Username, m.Content))
} }
} }
parts := strings.Split(m.Content, " ") parts := strings.Split(m.Content, " ")

Loading…
Cancel
Save