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",
"version": "1.4.8",
"version": "1.4.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.4.8",
"version": "1.4.7",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

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

View File

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