This package is deprecated, ℹ see here for more information
A simple (literally 1 file) package to get would-your-rather questions, easy to use and small
npm i wyr
- Typescript and Javascript compatible
import wyr from 'wyr';
// wyr is a function and returns a promise with a object containing your questions
wyr().then((response) => { // or .then(console.log) hehe
console.log(response)
})
const wyr = require('wyr').default
// wyr is a function and returns a promise with a object containing your questions
wyr().then((response) => { // or .then(console.log) hehe
console.log(response)
})
{
blue: {
question: 'Drive 200 miles well over the legal drunken limit',
votes: '620,500'
},
red: {
question: 'Drive 200 miles after being awake for 72 hours straight',
votes: '970,048'
}
}
ex: To access the blue question: .blue.question, and the count of blue .blue.votes
- and for red vice versa
- I am available in my discord server
- This repository and the code inside it is licensed under the MIT License. Read LICENSE for more information.