From 661f778500f4a388087dc2058e747cd81400d323 Mon Sep 17 00:00:00 2001 From: Michael McCarty Date: Fri, 6 Feb 2026 22:38:14 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20feat:=20add=20heartbeat=20mechan?= =?UTF-8?q?ism=20with=20dev=20bot=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 8627f06d..3cfea7a3 100644 --- a/main.go +++ b/main.go @@ -1116,7 +1116,12 @@ func getIntentUserID(i *discordgo.InteractionCreate) string { return i.Member.User.ID } +// Heartbeat function to update the modification time of a file at regular intervals func startHeartbeat(filepath string, interval time.Duration) { + if config.IsDevBot() { + return + + } go func() { // Create the file if it doesn't exist if _, err := os.Stat(filepath); os.IsNotExist(err) {