|
|
@ -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, " ") |
|
|
|