Browse Source

Fixed mention for automatic bump set

master
Gregory Rudolph 3 years ago
parent
commit
5c39cbdafb
  1. 2
      discordMessage.go

2
discordMessage.go

@ -15,7 +15,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
log.LogDebug("Failed bump detected") log.LogDebug("Failed bump detected")
re := regexp.MustCompile("Please wait another (.*) minutes until the server can be bumped") re := regexp.MustCompile("Please wait another (.*) minutes until the server can be bumped")
match := re.FindStringSubmatch(m.Embeds[0].Description) match := re.FindStringSubmatch(m.Embeds[0].Description)
m.Content = fmt.Sprintf("@Thanos bs %+v", match[1]) m.Content = fmt.Sprintf("%+v bs %+v", s.State.User.Mention(), match[1])
BumpSet(BotCommand{ BumpSet(BotCommand{
Message: m, Message: m,
Session: s, Session: s,

Loading…
Cancel
Save