mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Made the discord notification show votes after vote happened.
This commit is contained in:
6
index.js
6
index.js
@@ -373,8 +373,10 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
|
||||
json: {
|
||||
"embeds": [{
|
||||
"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 + " Votes | " + row.views + " Views**\n\nSubmission ID: " + UUID +
|
||||
"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 +
|
||||
" Views**\n\nSubmission ID: " + UUID +
|
||||
"\n\nSubmitted by: " + submissionInfoResult.row.userID + "\n\nTimestamp: " +
|
||||
getFormattedTime(submissionInfoResult.row.startTime) + " to " + getFormattedTime(submissionInfoResult.row.endTime),
|
||||
"color": 10813440,
|
||||
|
||||
Reference in New Issue
Block a user