Browse Source

Update last bumper

master
Gregory Rudolph 2 years ago
parent
commit
7713e3fc02
  1. 6
      discordMessage.go

6
discordMessage.go

@ -27,8 +27,10 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { @@ -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

Loading…
Cancel
Save