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!") {
|
if strings.Contains(m.Embeds[0].Description, "Bump done!") {
|
||||||
log.LogDebug("Finding string %+v", m.Embeds[0].Description)
|
log.LogDebug("Finding string %+v", m.Embeds[0].Description)
|
||||||
activeInteraction(s, m.Author.ID)
|
re := regexp.MustCompile("<@(.*)>")
|
||||||
config.LastBumper = m.Author.ID
|
match := re.FindStringSubmatch(m.Embeds[0].Description)
|
||||||
|
activeInteraction(s, match[1])
|
||||||
|
config.LastBumper = match[1]
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user