Compare commits

..

No commits in common. "f4df512031e9a998cd2edb75e824ce2c585715c3" and "0983d7e92098d004d4abab907c030c98115e916d" have entirely different histories.

3 changed files with 7 additions and 11 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.4.8", "version": "1.4.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.4.8", "version": "1.4.7",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bhttp": "^1.2.8", "bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.4.8", "version": "1.4.7",
"description": "Game host for SChat 2-powered chat sites", "description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -29,15 +29,11 @@ function scoreRound(context, round) {
} }
return game.answers.map(({ user }) => { return game.answers.map(({ user }) => {
if (user) {
context.setPoints(user, 1); context.setPoints(user, 1);
game.points[user.username] = (game.points[user.username] || 0) + 1; game.points[user.username] = (game.points[user.username] || 0) + 1;
return `**@${user.username}** gets a point`; return `**@${user.username}** gets a point`;
} }).join(', ');
return null;
}).filter(Boolean).join(', ');
} }
async function playRound(context, round = 0) { async function playRound(context, round = 0) {