Skip to content

Commit

Permalink
fixed truth or dare
Browse files Browse the repository at this point in the history
  • Loading branch information
thoriqazzikraa committed Feb 23, 2024
1 parent 39ce406 commit 322ba7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrape-websitee",
"version": "1.0.63",
"version": "1.0.64",
"description": "Website Scraping",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/`, {
Expand All @@ -131,7 +131,7 @@ async function truthOrDare(language) {
const result = {
status: true,
dare: dare,
truth: data.results[randomResult]
truth: randomResult
}
return result
} catch (err) {
Expand Down

0 comments on commit 322ba7b

Please sign in to comment.