Merge pull request #5 from Jordach/patch-1

Add !pil
master
sfan5 2013-10-23 08:41:15 -07:00
commit 8bd87fa977
2 changed files with 11 additions and 0 deletions

View File

@ -91,4 +91,5 @@ Required arguments are enclosed in { and }, optional arguments are enclosed in \
<tr> <td>!rtfm</td> <td>Give links to wiki and dev wiki</td> <td>Anyone</td> </tr>
<tr> <td>!questions</td> <td>Link to ESR's "How to ask smart questions"</td> <td>Anyone</td> </tr>
<tr> <td>!next</td> <td>Say: "Another satisfied customer. Next!"</td> <td>Anyone</td> </tr>
<tr> <td>!pil</td> <td>Say: "Link to: http://lua.org/pil/"</td> <td>Anyone</td> </tr>
</table>

View File

@ -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']