From fea79cbefca73a4f22cb8dad4d18457152df42b1 Mon Sep 17 00:00:00 2001 From: okseby Date: Mon, 28 Aug 2023 23:24:49 -0400 Subject: [PATCH] Now it'll work, I'm just dumb --- bot/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/utils.go b/bot/utils.go index 4d968be..342120f 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -153,9 +153,9 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { return } else { - commentText := "Votes: (#{reactionCount}) Needed: (#{reactionRemainingCount})" + commentText := "Votes: (#{reactionCount})/(#{reactionCountGoal})" commentText = strings.Replace(commentText, "(#{reactionCount})", strconv.Itoa(reactionCount), 1) - commentText = strings.Replace(commentText, "(#{reactionRemainingCount})", strconv.Itoa(reactionCountGoal-reactionCount), 1) + commentText = strings.Replace(commentText, "(#{reactionCountGoal})", strconv.Itoa(reactionCountGoal), 1) // Respond with a comment comment := &github.IssueComment{