diff --git a/COMMANDS.md b/COMMANDS.md index ec13f42..084d4a6 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -91,4 +91,5 @@ Required arguments are enclosed in { and }, optional arguments are enclosed in \ !rtfm Give links to wiki and dev wiki Anyone !questions Link to ESR's "How to ask smart questions" Anyone !next Say: "Another satisfied customer. Next!" Anyone + !pil Say: "Link to: http://lua.org/pil/" Anyone 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']