Compare commits
2 Commits
273013e390
...
cb2fa362d6
Author | SHA1 | Date |
---|---|---|
|
cb2fa362d6 | |
|
02da8f7705 |
|
@ -58,7 +58,7 @@ module.exports = {
|
|||
timeout: 60,
|
||||
},
|
||||
riddle: {
|
||||
timeout: 10000,
|
||||
timeout: 20,
|
||||
score: false,
|
||||
},
|
||||
dice: {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "schat2-clive",
|
||||
"version": "1.18.1",
|
||||
"version": "1.18.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "schat2-clive",
|
||||
"version": "1.18.1",
|
||||
"version": "1.18.2",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"bhttp": "^1.2.8",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "schat2-clive",
|
||||
"version": "1.18.1",
|
||||
"version": "1.18.2",
|
||||
"description": "Game host for SChat 2-powered chat sites",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -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, null, { signal: ac.signal });
|
||||
await timers.setTimeout(config.riddle.timeout * 1000, 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);
|
||||
|
|
Loading…
Reference in New Issue