mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
10 seconds instead of 20
This commit is contained in:
@@ -304,11 +304,11 @@ io.on('connection', function(socket){
|
||||
db.collection(coll).find({skip: false}, function(err, docs){
|
||||
if(docs.length == 1)
|
||||
{
|
||||
if(lists[coll].length/2 <= docs[0]["skips"].length+1 && !contains(docs[0]["skips"], guid) && get_time() - docs[0]["startTime"] >= 20)
|
||||
if(lists[coll].length/2 <= docs[0]["skips"].length+1 && !contains(docs[0]["skips"], guid) && get_time() - docs[0]["startTime"] >= 10)
|
||||
{
|
||||
change_song(coll);
|
||||
socket.emit("toast", "skip");
|
||||
}else if(get_time() - docs[0]["startTime"] < 20)
|
||||
}else if(get_time() - docs[0]["startTime"] < 10)
|
||||
{
|
||||
socket.emit("toast", "notyetskip");
|
||||
}else if(!contains(docs[0]["skips"], guid) && get_time() - docs[0]["startTime"] >= 30){
|
||||
|
||||
Reference in New Issue
Block a user