|
|
|
@ -157,7 +157,7 @@ func runPurge(s *discordgo.Session) {
@@ -157,7 +157,7 @@ func runPurge(s *discordgo.Session) {
|
|
|
|
|
|
|
|
|
|
func ready(s *discordgo.Session, event *discordgo.Ready) { |
|
|
|
|
// Set the playing status.
|
|
|
|
|
s.UpdateGameStatus(0, "DreamDaddy v2.4") |
|
|
|
|
s.UpdateGameStatus(0, "DreamDaddy v2.5 NOHEIC") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
@ -267,6 +267,10 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) {
@@ -267,6 +267,10 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
|
|
|
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("%+v said: %+v", m.Author.Mention(), m.Content)) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if strings.HasSuffix(strings.ToUpper(m.Attachments[0].ProxyURL), "HEIC") { |
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "You have tried to send an unsupported file (HEIC). Please try again using an image (jpeg, jpg, png, etc).") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
delete(config.Unverified, m.Author.ID) |
|
|
|
|
var v Verification |
|
|
|
|
v.Submitted = time.Now() |
|
|
|
|