Compare commits

..

No commits in common. "cb2fa362d610a13f9528eae741f8c7c30cc0b6ad" and "273013e39017fc7e30b3119692635828841a0128" have entirely different histories.

4 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ module.exports = {
timeout: 60,
},
riddle: {
timeout: 20,
timeout: 10000,
score: false,
},
dice: {

4
package-lock.json generated
View File

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

View File

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

View File

@ -26,7 +26,7 @@ async function onCommand(args, context) {
context.logger.info(`Riddle asked "${riddle.riddle}" with answer: ${riddle.answers[0]}`);
try {
await timers.setTimeout(config.riddle.timeout * 1000, null, { signal: ac.signal });
await timers.setTimeout(config.riddle.timeout, null, { signal: ac.signal });
open.delete(context.room.id);
context.sendMessage(`No one guessed the riddle: ${style.bold(riddle.fullAnswer)}! ${emojis[crypto.randomInt(0, emojis.length)]}`, context.room.id);