I want to use https://someapi.xyz/json/quote to display a quote when a user uses a command but I'm not really even sure where to start with implementing the html json and using it in a command. Messed around with snekfetch
a bit but I don't think I had the setup correct so it didn't work.
Here's what I tried:
const api = "https://someapi.xyz/json/quote";
const snekfetch = require('snekfetch');
module.exports = {
name: "quote",
description: "sends inspirational quote",
async execute(message, args, Discord) {
snekfetch.get(api).then(console.log);
}
}