forked from n/quotes-bot-python
maybe add fetching
This commit is contained in:
parent
aae5967096
commit
91d017044b
1 changed files with 6 additions and 1 deletions
7
fetch.py
7
fetch.py
|
@ -1,3 +1,8 @@
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
def fetchQuote()
|
def fetchQuote(quoteId):
|
||||||
|
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
||||||
|
if response.status_code == 200:
|
||||||
|
return response.content
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue