no message

This commit is contained in:
Luke Rogers 2013-10-01 04:08:13 +13:00
parent d673f8d15c
commit af9f024d63
3 changed files with 9 additions and 8 deletions

18
plugins/qrcode.py Normal file
View file

@ -0,0 +1,18 @@
# Plugin by https://github.com/Mu5tank05
from util import hook, web, http
@hook.command('qr')
@hook.command
def qrcode(inp):
"""qrcode [link] returns a link for a QR code."""
args = {
"cht": "qr", # chart type
"chs": "200x200", # dimensions
"chl": inp
}
link = http.prepare_url("http://chart.googleapis.com/chart", args)
return web.try_isgd(link)