mylife: remove .mlih
parent
d1ab481f8e
commit
0490ede283
|
@ -63,19 +63,6 @@ def mlig(phenny, input):
|
||||||
mlig.commands = ['mlig']
|
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):
|
def mlihp(phenny, input):
|
||||||
""".mlihp - My life is Harry Potter."""
|
""".mlihp - My life is Harry Potter."""
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -28,10 +28,6 @@ class TestMylife(unittest.TestCase):
|
||||||
mylife.mlib(self.phenny, None)
|
mylife.mlib(self.phenny, None)
|
||||||
assert self.phenny.say.called is True
|
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):
|
def test_mlihp(self):
|
||||||
mylife.mlihp(self.phenny, None)
|
mylife.mlihp(self.phenny, None)
|
||||||
assert self.phenny.say.called is True
|
assert self.phenny.say.called is True
|
||||||
|
|
Loading…
Reference in New Issue