mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
fix more non-format string-concat
This commit is contained in:
@@ -32,4 +32,3 @@ export class Mysql implements IDatabase {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -131,4 +131,3 @@ export class Postgres implements IDatabase {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -355,4 +355,3 @@ export {
|
||||
endpoint,
|
||||
handleGetSegments
|
||||
};
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ async function sendWebhooksNB(userID: string, videoID: string, UUID: string, sta
|
||||
body: JSON.stringify({
|
||||
"embeds": [{
|
||||
"title": ytData.items[0].snippet.title,
|
||||
"url": "https://www.youtube.com/watch?v=" + videoID + "&t=" + (parseFloat(startTime.toFixed(0)) - 2),
|
||||
"url": `https://www.youtube.com/watch?v=${videoID}&t=${(parseFloat(startTime.toFixed(0)) - 2)}`,
|
||||
"description": "**Submission ID:** " + UUID +
|
||||
"\n**Timestamp:** " + getFormattedTime(startTime) + " to " + getFormattedTime(endTime) +
|
||||
"\n**Predicted Probability:** " + probability +
|
||||
|
||||
@@ -129,7 +129,7 @@ async function sendWebhooks(voteData: VoteData) {
|
||||
"color": 10813440,
|
||||
"author": {
|
||||
"name": voteData.finalResponse?.webhookMessage ??
|
||||
voteData.finalResponse?.finalMessage ??
|
||||
voteData.finalResponse?.finalMessage ??
|
||||
getVoteAuthor(userSubmissionCountRow.submissionCount, voteData.isVIP, voteData.isOwnSubmission),
|
||||
},
|
||||
"thumbnail": {
|
||||
|
||||
Reference in New Issue
Block a user