Merge pull request #124 from ajayyy/experimental

Fix all submissions being sent to first time submissions channel
This commit is contained in:
Ajay Ramachandran 2020-08-30 11:35:13 -04:00 committed by GitHub
commit f2265f0dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ function sendWebhooks(userID, videoID, UUID, segmentInfo) {
// If it is a first time submission
// Then send a notification to discord
if (config.discordFirstTimeSubmissionsWebhookURL === null) return;
if (config.discordFirstTimeSubmissionsWebhookURL === null || userSubmissionCountRow.submissionCount <= 1) return;
request.post(config.discordFirstTimeSubmissionsWebhookURL, {
json: {
"embeds": [{