From 0490ede28322f4d240616e74bc52359fd3ee0ecd Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Fri, 7 Nov 2014 20:01:45 -0800 Subject: [PATCH] mylife: remove .mlih --- modules/mylife.py | 13 ------------- modules/test/test_mylife.py | 4 ---- 2 files changed, 17 deletions(-) diff --git a/modules/mylife.py b/modules/mylife.py index 3fbbdb3..f89ed30 100644 --- a/modules/mylife.py +++ b/modules/mylife.py @@ -63,19 +63,6 @@ def mlig(phenny, input): mlig.commands = ['mlig'] -def mlih(phenny, input): - """.mlih - My life is ho.""" - try: - req = web.get("http://mylifeisho.com/random") - except: - raise GrumbleError("MLIH is giving some dome to some lax bros.") - - doc = lxml.html.fromstring(req) - quote = doc.find_class('storycontent')[0][0].text_content() - phenny.say(quote) -mlih.commands = ['mlih'] - - def mlihp(phenny, input): """.mlihp - My life is Harry Potter.""" try: diff --git a/modules/test/test_mylife.py b/modules/test/test_mylife.py index b0aef79..fe80446 100644 --- a/modules/test/test_mylife.py +++ b/modules/test/test_mylife.py @@ -28,10 +28,6 @@ class TestMylife(unittest.TestCase): mylife.mlib(self.phenny, None) assert self.phenny.say.called is True - def test_mlih(self): - mylife.mlih(self.phenny, None) - assert self.phenny.say.called is True - def test_mlihp(self): mylife.mlihp(self.phenny, None) assert self.phenny.say.called is True