From 20fbb841182ab510d0105e54c05c0e11c9ac618d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 28 Dec 2019 11:53:25 -0500 Subject: [PATCH] Made it show votes before and after in the discord message. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 916b0f6..d61ca87 100644 --- a/index.js +++ b/index.js @@ -375,7 +375,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) { "title": data.items[0].snippet.title, "url": "https://www.youtube.com/watch?v=" + submissionInfoResult.row.videoID + "&t=" + (submissionInfoResult.row.startTime.toFixed(0) - 2), - "description": "**" + (row.votes + incrementAmount - oldIncrementAmount) + " Votes | " + row.views + + "description": "**" + row.votes + " Votes Prior | " (row.votes + incrementAmount - oldIncrementAmount) + " Votes Now | " + row.views + " Views**\n\nSubmission ID: " + UUID + "\n\nSubmitted by: " + submissionInfoResult.row.userID + "\n\nTimestamp: " + getFormattedTime(submissionInfoResult.row.startTime) + " to " + getFormattedTime(submissionInfoResult.row.endTime),