-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
The problem is fixed in my latest Pull Request. You can also replace the "shorten()" function in the "bot.py" file with this new version:
def shorten(self, url):
try: # Trying to shorten URL
api = 'https://tinyurl.com/api-create.php?url='
sresponse = requests.get(api + url)
surl = sresponse.text
except Exception as err:
print('A shortening error occurred:', sresponse.status_code)
surl = url
return surl
Metadata
Metadata
Assignees
Labels
No labels