from requests import get


class Quote:
    def __init__(self):
        self.url = "https://inspiro-bot.some-1hing.repl.co/quotes"

    def quote(self, user_id):
        try:
            quote = get(self.url).json()["quotes"]
            return quote

        except Exception as e:
            return e
