Compare commits

..

No commits in common. "533607024549e7f173b64a250d20e4f02600ac5e" and "c4f448ea124448294c271945e1b0acc077bda884" have entirely different histories.

4 changed files with 7 additions and 6 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -116,8 +116,9 @@ function onRooms({ rooms, users }, bot) {
/* eslint-disable no-param-reassign */
function onJoin(data, bot) {
if (bot.rooms[data.roomId] && !bot.rooms[data.roomId]?.includes(data.user.id)) {
bot.users[data.user.id] = data.user;
bot.users[data.user.id] = data.user;
if (!bot.rooms[data.roomId].includes(data.user.id)) {
bot.rooms[data.roomId].push(data.user.id);
}
}

View File

@ -78,7 +78,7 @@ async function playRound(context, round = 0) {
const scores = scoreRound(context, round);
if (game.mode === 'first') {
context.sendMessage(`**${question.answer}** is the right answer, played in **${((new Date() - now) / 1000).toFixed(3)}s**! ${scores}`, context.room.id);
context.sendMessage(`**${question.answer}** is the right answer after **${((new Date() - now) / 1000).toFixed(3)}s**! ${scores}`, context.room.id);
}
if (game.mode === 'timeout') {