More tweaks
This commit is contained in:
parent
11b7f870e9
commit
9ff3eda44b
|
@ -38,12 +38,12 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
|
|||
|
||||
if 'error' in response:
|
||||
if inp: # specified a user name
|
||||
return "error: %s" % response["message"]
|
||||
return "Error: %s." % response["message"]
|
||||
else:
|
||||
return "Your nick is not a LastFM account. Try '.lastfm [user]'"
|
||||
|
||||
if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0:
|
||||
return "No recent tracks for user \x02%s\x0F found" % user
|
||||
return 'No recent tracks for user "%s" found.' % user
|
||||
|
||||
tracks = response["recenttracks"]["track"]
|
||||
|
||||
|
|
Reference in a new issue