dont post dog url videos, they dont embed in discord

This commit is contained in:
Luke Robles 2017-10-02 13:10:45 -07:00
parent 1ab6804137
commit 1103a7f0f4

View File

@ -13,6 +13,9 @@ def random_sheeb():
def random_dog():
return "https://random.dog/{}".format(
requests.get('https://random.dog/woof').text
)
dog_url = None
while not dog_url:
dog_url = requests.get('https://random.dog/woof').text
if 'mp4' in dog_url[-3:]:
dog_url = None
return "https://random.dog/{}".format(dog_url)