Browse Source

Less delete of Intro msg

BotCommandStruct
Gregory Rudolph 3 years ago
parent
commit
12d07ce1ff
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 7
      main.go

7
main.go

@ -157,7 +157,7 @@ func runPurge(s *discordgo.Session) {
func ready(s *discordgo.Session, event *discordgo.Ready) { func ready(s *discordgo.Session, event *discordgo.Ready) {
// Set the playing status. // Set the playing status.
s.UpdateGameStatus(0, "DreamDaddy v2.3") s.UpdateGameStatus(0, "DreamDaddy v2.4")
} }
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { 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 { 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())) 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 m.ChannelID == config.AdminChannel {
if strings.HasPrefix(m.Content, rebootToken) { if strings.HasPrefix(m.Content, rebootToken) {
exit(s) exit(s)

Loading…
Cancel
Save