Update last bumper
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-11-24 13:33:27 -05:00
parent 084ce2aaae
commit 7713e3fc02

View File

@ -27,8 +27,10 @@ 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)
activeInteraction(s, m.Author.ID)
config.LastBumper = m.Author.ID
re := regexp.MustCompile("<@(.*)>")
match := re.FindStringSubmatch(m.Embeds[0].Description)
activeInteraction(s, match[1])
config.LastBumper = match[1]
}
return