Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function-level comment is now slightly inaccurate because startHeartbeat can be a no-op when config.IsDevBot() is true. Consider updating the comment to mention that the heartbeat is skipped for the dev bot so the behavior matches the documentation.

Suggested change
// Heartbeat function to update the modification time of a file at regular intervals
// Heartbeat function to update the modification time of a file at regular intervals;
// when running as the dev bot (config.IsDevBot() == true) this is a no-op.

Copilot uses AI. Check for mistakes.
func startHeartbeat(filepath string, interval time.Duration) {
if config.IsDevBot() {
return

Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s an extra blank line inside the if config.IsDevBot() block after return. Please remove it to keep the control flow block tidy (and avoid unnecessary diffs if gofmt/lint rules are enforced).

Suggested change

Copilot uses AI. Check for mistakes.
}
go func() {
// Create the file if it doesn't exist
if _, err := os.Stat(filepath); os.IsNotExist(err) {
Expand Down
Loading