diff --git a/modules/mylife.py b/modules/mylife.py index b6b386c..d1c5653 100644 --- a/modules/mylife.py +++ b/modules/mylife.py @@ -89,18 +89,5 @@ def mlihp(phenny, input): mlihp.commands = ['mlihp'] -def mlit(phenny, input): - """.mlit - My life is Twilight.""" - try: - req = web.get("http://mylifeistwilight.com/random") - except: - raise GrumbleError("Error: Your life is too Twilight. Go outside.") - - doc = lxml.html.fromstring(req) - quote = doc.find_class('fmllink')[0].text_content() - phenny.say(quote) -mlit.commands = ['mlit'] - - if __name__ == '__main__': print(__doc__.strip()) diff --git a/modules/test/test_mylife.py b/modules/test/test_mylife.py index 38eb691..3c2bad0 100644 --- a/modules/test/test_mylife.py +++ b/modules/test/test_mylife.py @@ -31,8 +31,3 @@ class TestMylife(unittest.TestCase): def test_mlihp(self): mylife.mlihp(self.phenny, None) assert self.phenny.say.called is True - - def test_mlit(self): - mylife.mlit(self.phenny, None) - assert self.phenny.say.called is True -