overhauled help

This commit is contained in:
neersighted 2012-02-28 10:03:43 +08:00 committed by lukeroge
parent 0fdf370733
commit c58192f72c
58 changed files with 124 additions and 117 deletions

View file

@ -24,7 +24,7 @@ def bitly(url, user, apikey):
@hook.command
def shorten(inp, bot = None):
".shorten <url> - Makes an j.mp/bit.ly shortlink to the url provided"
".shorten <url> - Makes an j.mp/bit.ly shortlink to the url provided."
api_user = bot.config.get("api_keys", {}).get("bitly_user", None)
api_key = bot.config.get("api_keys", {}).get("bitly_api", None)
if api_key is None:
@ -33,7 +33,7 @@ def shorten(inp, bot = None):
@hook.command
def expand(inp, bot = None):
".expand <url> - gets the original URL from a shortened link"
".expand <url> - Gets the original URL from a shortened link."
try:
url = http.get_url(inp)
except HTTPError, e: