mylife: add my life is creepy

master
mutantmonkey 2011-09-17 21:46:42 -04:00
parent f7658ccfdf
commit c8fe22190c
1 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,20 @@ def mlib(phenny, input):
phenny.say(quote)
mlib.commands = ['mlib']
def mlic(phenny, input):
""".mlic - My life is creepy."""
try:
req = urlopen("http://mylifeiscreepy.com/random")
except HTTPError:
phenny.say("Error: Have you checked behind you?")
return
doc = lxml.html.parse(req)
quote = doc.getroot().find_class('oldlink')[0].text_content()
quote = quote.strip()
phenny.say(quote)
mlic.commands = ['mlic']
def mlid(phenny, input):
""".mlib - My life is Desi."""
try: