Commit 11dc342c61c0fffc1e3894ecf41bc6eadb18c2f2

Authored by Geoffrey PREUD'HOMME
1 parent 48449675

mend

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
@@ -42,7 +42,7 @@ function saveScores() { @@ -42,7 +42,7 @@ function saveScores() {
42 } 42 }
43 43
44 function addScore(score, name) { 44 function addScore(score, name) {
45 - console.log("Score of %d by %s", score, name); 45 + console.log("SCORE %d by %s", score, name);
46 var obj = {score: score, name: name}; 46 var obj = {score: score, name: name};
47 scores.push(obj); 47 scores.push(obj);
48 io.emit('newScore', obj); 48 io.emit('newScore', obj);
@@ -51,7 +51,6 @@ function addScore(score, name) { @@ -51,7 +51,6 @@ function addScore(score, name) {
51 51
52 setInterval(function msg() { 52 setInterval(function msg() {
53 var whole = require('fs').readFileSync('sub.txt', 'utf8'); 53 var whole = require('fs').readFileSync('sub.txt', 'utf8');
54 - console.log(whole)  
55 ex = whole.split('\n'); 54 ex = whole.split('\n');
56 id = Math.floor((Math.random() * (ex.length - 1))); 55 id = Math.floor((Math.random() * (ex.length - 1)));
57 io.emit('msg', ex[id]) 56 io.emit('msg', ex[id])