This commit is contained in:
Luke Rogers 2014-02-14 00:47:01 +13:00
parent ada153c8bc
commit ee0ad67a16
14 changed files with 24 additions and 50 deletions

View file

@ -52,7 +52,7 @@ def twitter_url(match, bot=None):
@hook.command("twatter")
@hook.command
def twitter(inp, bot=None):
"twitter <user> [n] -- Gets last/[n]th tweet from <user>"
"""twitter <user> [n] -- Gets last/[n]th tweet from <user>"""
api = get_api(bot)
if not api:
@ -117,6 +117,9 @@ def twitter(inp, bot=None):
tweet = random.choice(search)
user = tweet.user
else:
# ???
return "Unknown Error"
text = " ".join(tweet.text.split())