remove my life is desi, add mylife tests

This commit is contained in:
mutantmonkey
2012-05-31 23:56:54 -07:00
parent 03b7a6df9e
commit 226b10f967
3 changed files with 58 additions and 13 deletions

View File

@@ -51,19 +51,6 @@ def mlib(phenny, input):
phenny.say(quote)
mlib.commands = ['mlib']
def mlid(phenny, input):
""".mlib - My life is Desi."""
try:
req = web.get("http://www.mylifeisdesi.com/random")
except (HTTPError, IOError):
phenny.say("MLID is busy at the hookah lounge, be back soon.")
return
doc = lxml.html.fromstring(req)
quote = doc.find_class('oldlink')[0].text_content()
phenny.say(quote)
mlid.commands = ['mlid']
def mlig(phenny, input):
""".mlig - My life is ginger."""
try: