tweak lastfm help message
This commit is contained in:
parent
d08a64c0ad
commit
4cb2060872
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from util import hook, http
|
||||||
@hook.command('lfm', autohelp=False)
|
@hook.command('lfm', autohelp=False)
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
def lastfm(inp, nick='', say=None, db=None, bot=None):
|
def lastfm(inp, nick='', say=None, db=None, bot=None):
|
||||||
".lastfm <user> -- Displays the now playing (or recent) tracks of LastFM user <user>."
|
".lastfm [user] -- Displays the now playing (or recent) tracks of LastFM user [user]."
|
||||||
if inp:
|
if inp:
|
||||||
user = inp
|
user = inp
|
||||||
else:
|
else:
|
||||||
|
@ -37,7 +37,7 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
|
||||||
if inp: # specified a user name
|
if inp: # specified a user name
|
||||||
return "error: %s" % response["message"]
|
return "error: %s" % response["message"]
|
||||||
else:
|
else:
|
||||||
return "your nick is not a LastFM account. try '.lastfm <user>'"
|
return "your nick is not a LastFM account. try '.lastfm [user]'"
|
||||||
|
|
||||||
tracks = response["recenttracks"]["track"]
|
tracks = response["recenttracks"]["track"]
|
||||||
|
|
||||||
|
|
Reference in a new issue