Now it'll work, I'm just dumb

This commit is contained in:
Sebastian Cabrera 2023-08-28 23:24:49 -04:00
parent 2a0ee52654
commit fea79cbefc

View file

@ -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{