From 12d07ce1ff5e1e92f2a7ee3b346f89d17128f143 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 4 Mar 2021 15:47:53 -0500 Subject: [PATCH] Less delete of Intro msg --- main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.go b/main.go index 1844fae..a1d2ff5 100644 --- a/main.go +++ b/main.go @@ -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.3") + s.UpdateGameStatus(0, "DreamDaddy v2.4") } func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { @@ -383,11 +383,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { if time.Since(config.BumpTime) > 2*time.Hour { s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("%+v please say \"!d bump\" without the quotes to bump our server :)", m.Author.Mention())) } - for k, v := range introMsg { - if m.Author.ID == k { - s.ChannelMessageDelete(config.IntroChann, v) - } - } if m.ChannelID == config.AdminChannel { if strings.HasPrefix(m.Content, rebootToken) { exit(s)