mirror of
https://github.com/thewesker/Video-Archive-Discord-Bot.git
synced 2025-12-20 04:11:05 -05:00
Remove no longer required check for startswith
This commit is contained in:
3
main.py
3
main.py
@@ -79,7 +79,6 @@ async def on_message(message):
|
|||||||
# Unsupported URL, return silently without doing anything
|
# Unsupported URL, return silently without doing anything
|
||||||
return
|
return
|
||||||
|
|
||||||
if message.content.startswith('https'):
|
|
||||||
await message.channel.send('TikBot downloading video now!')
|
await message.channel.send('TikBot downloading video now!')
|
||||||
downloadResponse = download(url)
|
downloadResponse = download(url)
|
||||||
fileName = downloadResponse['fileName']
|
fileName = downloadResponse['fileName']
|
||||||
@@ -91,8 +90,6 @@ async def on_message(message):
|
|||||||
if(messages.startswith("Error")):
|
if(messages.startswith("Error")):
|
||||||
await message.channel.send('TikBot has failed you. Consider berating my human if this was not expected.\nMessage: ' + messages)
|
await message.channel.send('TikBot has failed you. Consider berating my human if this was not expected.\nMessage: ' + messages)
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Check file size, if it's small enough just send it!
|
# Check file size, if it's small enough just send it!
|
||||||
fileSize = os.stat(fileName).st_size
|
fileSize = os.stat(fileName).st_size
|
||||||
|
|||||||
Reference in New Issue
Block a user