From 322ba7bc2a0a7d2dadd47f49291c01f5f3140acb Mon Sep 17 00:00:00 2001 From: thoriqazzikraa Date: Fri, 23 Feb 2024 18:08:00 +0700 Subject: [PATCH] fixed truth or dare --- package.json | 2 +- src/random.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 63045a2..19b2f05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scrape-websitee", - "version": "1.0.63", + "version": "1.0.64", "description": "Website Scraping", "main": "index.js", "scripts": { diff --git a/src/random.js b/src/random.js index 7545087..88c4473 100644 --- a/src/random.js +++ b/src/random.js @@ -112,7 +112,7 @@ async function truthOrDare(language) { } }) const randomResult = pickRandom(data.results) - return data.results[randomResult] + return randomResult } const dare = await dareFunc(lang) const { data } = await axios(`https://psycatgames.com/api/tod-v2/`, { @@ -131,7 +131,7 @@ async function truthOrDare(language) { const result = { status: true, dare: dare, - truth: data.results[randomResult] + truth: randomResult } return result } catch (err) {