no message
This commit is contained in:
parent
d673f8d15c
commit
af9f024d63
3 changed files with 9 additions and 8 deletions
18
plugins/qrcode.py
Normal file
18
plugins/qrcode.py
Normal 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)
|
Reference in a new issue