remove broken .mlit command

master
mutantmonkey 2013-07-21 00:02:13 -07:00
parent f9374c42c3
commit 5d53cc6b11
2 changed files with 0 additions and 18 deletions

View File

@ -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())

View File

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