diff --git a/plugins/lastfm.py b/plugins/lastfm.py index 3562dda..bd7481a 100755 --- a/plugins/lastfm.py +++ b/plugins/lastfm.py @@ -5,12 +5,12 @@ from util import hook, http @hook.command('l', autohelp=False) @hook.command(autohelp=False) def lastfm(inp, nick='', say=None, db=None, bot=None): - ".lastfm [user] -- Displays the now playing (or last played) "\ + ".lastfm [user] -- Displays the now playing (or last played) " \ "track of LastFM user [user]." - api_key = bot.config.get("api_keys", {}).get("lastfm") + api_key = bot.config.get("api_keys", {}).get("lastfm") if not api_key: return "error: no api key set" - + if inp: user = inp else: