Commit 11dc342c61c0fffc1e3894ecf41bc6eadb18c2f2
1 parent
48449675
mend
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
server.js
... | ... | @@ -42,7 +42,7 @@ function saveScores() { |
42 | 42 | } |
43 | 43 | |
44 | 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 | 46 | var obj = {score: score, name: name}; |
47 | 47 | scores.push(obj); |
48 | 48 | io.emit('newScore', obj); |
... | ... | @@ -51,7 +51,6 @@ function addScore(score, name) { |
51 | 51 | |
52 | 52 | setInterval(function msg() { |
53 | 53 | var whole = require('fs').readFileSync('sub.txt', 'utf8'); |
54 | - console.log(whole) | |
55 | 54 | ex = whole.split('\n'); |
56 | 55 | id = Math.floor((Math.random() * (ex.length - 1))); |
57 | 56 | io.emit('msg', ex[id]) | ... | ... |