Skip to content

Shilokk/some-random-quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Some Random Quotes 👋

Version Documentation License: MIT

An api for quotes

Author

👤 Shilo k.

Show your support

Give a ⭐️ if this project helped you!

Examples:

example with node fetch

const fetch = require('node-fetch')
    
fetch('https://somerandomquotes.gq/api/quotes/random')
.then(res => res.json())
.then(json => console.log(json));

example with discord.js and superagent

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)
    }
}

If you need help message me on discord at Shilo K.#0366

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published