fixed autohelp in lastfm.py
This commit is contained in:
parent
75c17d5723
commit
e246512315
1 changed files with 4 additions and 4 deletions
|
@ -1,15 +1,15 @@
|
||||||
# Upgraded with tables/cacheing by ChauffeR of #freebnc on irc.esper.net
|
# Upgraded with tables/cacheing by ChauffeR of #freebnc on irc.esper.net
|
||||||
from util import hook, http
|
from util import hook, http
|
||||||
|
|
||||||
@hook.command('l')
|
@hook.command('l', autohelp=False)
|
||||||
@hook.command('lfm')
|
@hook.command('lfm', autohelp=False)
|
||||||
@hook.command
|
@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>."
|
||||||
if inp:
|
if inp:
|
||||||
user = inp
|
user = inp
|
||||||
else:
|
else:
|
||||||
user = nick
|
user = nick
|
||||||
".lastfm <user> -- Displays the now playing (or recent) tracks of LastFM user <user>."
|
|
||||||
db.execute("create table if not exists lastfm(nick primary key, acc)")
|
db.execute("create table if not exists lastfm(nick primary key, acc)")
|
||||||
sql = db.execute("select acc from lastfm where nick=lower(?)", (nick,)).fetchone();
|
sql = db.execute("select acc from lastfm where nick=lower(?)", (nick,)).fetchone();
|
||||||
api_url = "http://ws.audioscrobbler.com/2.0/?format=json"
|
api_url = "http://ws.audioscrobbler.com/2.0/?format=json"
|
||||||
|
|
Reference in a new issue