Cleaning and pushing
This commit is contained in:
@ -27,13 +27,8 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
}
|
||||
if strings.Contains(m.Embeds[0].Description, "Bump done!") {
|
||||
log.LogDebug("Finding string %+v", m.Embeds[0].Description)
|
||||
if time.Since(config.BumpTime) < 2*time.Hour {
|
||||
//s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("Sorry, <@%+v> already claimed the bump. Better luck next time!", config.LastBumper))
|
||||
return
|
||||
}
|
||||
activeInteraction(s, m.Author.ID)
|
||||
config.LastBumper = m.Author.ID
|
||||
//go bumpTimer(s)
|
||||
}
|
||||
return
|
||||
|
||||
@ -68,8 +63,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("Sorry, <@%+v> already claimed the bump. Better luck next time!", config.LastBumper))
|
||||
return
|
||||
}
|
||||
activeInteraction(s, m.Author.ID)
|
||||
config.LastBumper = m.Author.ID
|
||||
go bumpTimer(s)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user