dont post dog url videos, they dont embed in discord
This commit is contained in:
parent
1ab6804137
commit
1103a7f0f4
@ -13,6 +13,9 @@ def random_sheeb():
|
|||||||
|
|
||||||
|
|
||||||
def random_dog():
|
def random_dog():
|
||||||
return "https://random.dog/{}".format(
|
dog_url = None
|
||||||
requests.get('https://random.dog/woof').text
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user