An api for quotes
🏠 Homepage
👤 Shilo k.
- Github: @ShiloKk
Give a ⭐️ if this project helped you!
const fetch = require('node-fetch')
fetch('https://somerandomquotes.gq/api/quotes/random')
.then(res => res.json())
.then(json => console.log(json));
const superagent = require('superagent')
module.exports = {
name: "quote",
description: "Sends a random quote!",
category: "fun",
usage: "quote",
aliases: null,
run: async (client, message, args) => {
const { body } = await superagent
.get(`https://somerandomquotes.gq/api/quotes/random`)
message.channel.send(body.quote + ' -' + body.author)
}
}