Fixed formatting.

This commit is contained in:
Fletcher Boyd 2013-09-04 18:30:04 +08:00
parent 146ae3c279
commit 4069dd21a3
89 changed files with 615 additions and 496 deletions

View file

@ -8,7 +8,7 @@ from datetime import datetime
@hook.command("tw")
@hook.command("twatter")
@hook.command
def twitter(inp, bot=None, say=None):
def twitter(inp, bot=None):
"twitter <user> [n] -- Gets last/[n]th tweet from <user>"
consumer_key = bot.config.get("api_keys", {}).get("twitter_consumer_key")
@ -100,7 +100,7 @@ def twitter(inp, bot=None, say=None):
@hook.command("twinfo")
@hook.command
def twuser(inp, bot=None):
"twuser <user> -- Get info on the Twitter user <user>"
"""twuser <user> -- Get info on the Twitter user <user>"""
consumer_key = bot.config.get("api_keys", {}).get("twitter_consumer_key")
consumer_secret = bot.config.get("api_keys", {}).get("twitter_consumer_secret")
@ -131,4 +131,5 @@ def twuser(inp, bot=None):
prefix = ""
return u"{}@\x02{}\x02 ({}) is located in \x02{}\x02 and has \x02{:,}\x02 tweets and \x02{:,}\x02 followers. The users description is \"{}\" " \
"".format(prefix, user.screen_name, user.name, user.location, user.statuses_count, user.followers_count, user.description)
"".format(prefix, user.screen_name, user.name, user.location, user.statuses_count, user.followers_count,
user.description)