This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user