From fd1a0ea78b261f2ff90823f676f4515e32e4e8ae Mon Sep 17 00:00:00 2001 From: Jordan Snelling Date: Wed, 23 Oct 2013 16:31:57 +0100 Subject: [PATCH] add !pil it links to the Programming in Lua manual for users who do not or plainly understand (the oddities) of Lua --- shortutils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shortutils.py b/shortutils.py index b98444b..b3e2cea 100644 --- a/shortutils.py +++ b/shortutils.py @@ -38,3 +38,13 @@ def next(phenny, input): phenny.say("Another satisfied customer. Next!") next.commands = ['next'] + +def pil(phenny, input): + """Lua Manual link""" + for x in phenny.bot.commands["high"].values(): + if x[0].__name__ == "aa_hook": + if x[0](phenny, input): + return + phenny.say("Someone thinks you need to brush up on or learn Lua, please go to: http://lua.org/pil/") + +pil.commands = ['pil']