Many improvements and additions.
Several new achievements.
Separate files for buy route, webapi, and shared utils.
Add Creator buyable item.
Access control now object-based.
Toying with Trivia and a lottery system.
!cleanusers, !setpw, !rach, !myupgrades, !squad, !gimme, !prestige,
!quack, !whois, !ngift, !message, !!kill,
Add simple test user system.
Add several oneShot commands.
2022-03-14 08:37:38 -04:00
|
|
|
const axios = require('axios')
|
|
|
|
|
|
|
|
const getTrivia = async () => axios.get('https://opentdb.com/api.php?amount=10&category=9&difficulty=medium&type=multiple', {
|
|
|
|
headers: {
|
|
|
|
Accept: 'application/json, text/plain, */*'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.then(res => res.data.results)
|
2022-05-19 11:09:16 -04:00
|
|
|
.catch(e => console.error('trivia error', e))
|
Many improvements and additions.
Several new achievements.
Separate files for buy route, webapi, and shared utils.
Add Creator buyable item.
Access control now object-based.
Toying with Trivia and a lottery system.
!cleanusers, !setpw, !rach, !myupgrades, !squad, !gimme, !prestige,
!quack, !whois, !ngift, !message, !!kill,
Add simple test user system.
Add several oneShot commands.
2022-03-14 08:37:38 -04:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getTrivia
|
|
|
|
}
|