From 336b81abc0626f47245ce10b308df8d3b6df34e4 Mon Sep 17 00:00:00 2001 From: neersighted Date: Tue, 28 Feb 2012 08:04:31 +0800 Subject: [PATCH] Added help string to lastfm --- plugins/lastfm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/lastfm.py b/plugins/lastfm.py index cd00b35..19e81c8 100644 --- a/plugins/lastfm.py +++ b/plugins/lastfm.py @@ -2,6 +2,7 @@ from util import hook, http @hook.command def lastfm(inp, nick='', say=None, db=None, bot=None): + ".lastfm - display the now playing (or recent) tracks of a LastFM user" db.execute("create table if not exists lastfm(nick primary key, acc)") sql = db.execute("select acc from lastfm where nick=lower(?)", (nick,)).fetchone(); api_url = "http://ws.audioscrobbler.com/2.0/?format=json" @@ -30,7 +31,7 @@ def lastfm(inp, nick='', say=None, db=None, bot=None): if inp: # specified a user name return "error: %s" % response["message"] else: - return "your nick is not a LastFM account. try '.lastfm username'." + return "your nick is not a LastFM account. try '.lastfm '" tracks = response["recenttracks"]["track"]