Why is the vote counting broken now?

This commit is contained in:
Sebastian Cabrera 2023-08-28 23:21:25 -04:00
parent b8413bf448
commit 40b64a43ef

View file

@ -153,7 +153,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
return
} else {
commentText := "Votes: (#{reactionCount})/(#{reactionRemainingCount})"
commentText := "Votes: (#{reactionCount}) Needed: (#{reactionRemainingCount})"
commentText = strings.Replace(commentText, "(#{reactionCount})", strconv.Itoa(reactionCount), 1)
commentText = strings.Replace(commentText, "(#{reactionRemainingCount})", strconv.Itoa(reactionCountGoal-reactionCount), 1)