This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
|
from util import hook, http, web
|
|
|
|
|
|
@hook.command
|
|
def shorten(inp):
|
|
"""shorten <url> - Makes an is.gd shortlink to the url provided."""
|
|
|
|
try:
|
|
return web.isgd(inp)
|
|
except (web.ShortenError, http.HTTPError) as error:
|
|
return error
|