From 7713e3fc02b79220a200cb632652ca0831996e2d Mon Sep 17 00:00:00 2001 From: = Date: Wed, 24 Nov 2021 13:33:27 -0500 Subject: [PATCH] Update last bumper --- discordMessage.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/discordMessage.go b/discordMessage.go index a6060f6..2780594 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -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