Fixed formatting.

This commit is contained in:
Fletcher Boyd 2013-09-04 18:30:04 +08:00
parent 146ae3c279
commit 4069dd21a3
89 changed files with 615 additions and 496 deletions

View file

@ -4,17 +4,15 @@ from util import hook, web, http
@hook.command('qr')
@hook.command
def qrcode(inp, bot=None):
"qrcode [link] returns a link for a QR code."
def qrcode(inp):
"""qrcode [link] returns a link for a QR code."""
args = {
"cht": "qr", # chart type
"chs": "200x200", # dimensions
"chl": inp
"cht": "qr", # chart type
"chs": "200x200", # dimensions
"chl": inp
}
link = http.prepare_url("http://chart.googleapis.com/chart", args)
return web.try_isgd(link)