From a3f9952a749e821a727380dd84b6225b33d4af11 Mon Sep 17 00:00:00 2001 From: Michael McCarty Date: Sat, 7 Feb 2026 21:30:55 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20feat:=20add=20auto-delete=20mess?= =?UTF-8?q?age=20after=2010=20seconds=20for=20list=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boost/boost.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/boost/boost.go b/src/boost/boost.go index 0cfb613e..27801e7e 100644 --- a/src/boost/boost.go +++ b/src/boost/boost.go @@ -706,7 +706,14 @@ func AddContractMember(s *discordgo.Session, guildID string, channelID string, o listStr = "Sign-up" } var str = fmt.Sprintf("%s was added to the %s List by %s", guest, listStr, operator) - _, _ = s.ChannelMessageSend(loc.ChannelID, str) + msg, err := s.ChannelMessageSend(loc.ChannelID, str) + if err == nil && msg != nil { + time.AfterFunc(10*time.Second, func() { + if err := s.ChannelMessageDelete(msg.ChannelID, msg.ID); err != nil { + log.Println(err) + } + }) + } if contract.State == ContractStateSignup { if previousBoosters != len(contract.Boosters) && previousBoosters == contract.CoopSize {