Show book URL when no arg passed
parent
c91a769a6a
commit
c2d657647f
|
@ -13,8 +13,10 @@ def book(phenny, input):
|
||||||
text = str(text, 'utf-8')
|
text = str(text, 'utf-8')
|
||||||
data = web.json(text)
|
data = web.json(text)
|
||||||
|
|
||||||
query = (input.group(2) or "").lower()
|
query = (input.group(2) or "").lower().strip()
|
||||||
if not query: return
|
if not query:
|
||||||
|
return phenny.reply("Minetest Modding Book - https://rubenwardy.com/minetest_modding_book/")
|
||||||
|
|
||||||
for ele in data:
|
for ele in data:
|
||||||
title = ele["title"]
|
title = ele["title"]
|
||||||
desc = ele.get("description", "")
|
desc = ele.get("description", "")
|
||||||
|
|
Loading…
Reference in New Issue