|
|
|
@ -162,6 +162,7 @@ func cleanSocials(s *discordgo.Session) {
@@ -162,6 +162,7 @@ func cleanSocials(s *discordgo.Session) {
|
|
|
|
|
config.SocialChanns = append(config.SocialChanns, "730439324675473470") |
|
|
|
|
} |
|
|
|
|
for _, channel := range config.SocialChanns { |
|
|
|
|
go func(channel string, s *discordgo.Session) { |
|
|
|
|
messages, _ := s.ChannelMessages(channel, 100, "", "", "") |
|
|
|
|
for _, message := range messages { |
|
|
|
|
_, err := s.GuildMember(config.GuildID, message.Author.ID) |
|
|
|
@ -169,6 +170,7 @@ func cleanSocials(s *discordgo.Session) {
@@ -169,6 +170,7 @@ func cleanSocials(s *discordgo.Session) {
|
|
|
|
|
s.ChannelMessageDelete(channel, message.ID) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}(channel, s) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|