Browse Source

Clean socials, instead of talk about it

master
Gregory Rudolph 4 years ago
parent
commit
6f3896a90b
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 3
      main.go

3
main.go

@ -166,8 +166,7 @@ func cleanSocials(s *discordgo.Session) { @@ -166,8 +166,7 @@ func cleanSocials(s *discordgo.Session) {
for _, message := range messages {
_, err := s.GuildMember(config.GuildID, message.Author.ID)
if err != nil {
//s.ChannelMessageDelete(channel, message.ID)
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("Suggested delete: %+v from <#%+v>, reason: Member not found.", message.ID, channel))
s.ChannelMessageDelete(channel, message.ID)
}
}
}

Loading…
Cancel
Save