remove broken mylife commands
parent
7875789331
commit
b0258f6f48
|
@ -37,44 +37,5 @@ def mlia(phenny, input):
|
|||
mlia.commands = ['mlia']
|
||||
|
||||
|
||||
def mlib(phenny, input):
|
||||
""".mlib - My life is bro."""
|
||||
try:
|
||||
req = web.get("http://mylifeisbro.com/random")
|
||||
except:
|
||||
raise GrumbleError("MLIB is out getting a case of Natty. It's chill.")
|
||||
|
||||
doc = lxml.html.fromstring(req)
|
||||
quote = doc.find_class('storycontent')[0][0].text_content()
|
||||
phenny.say(quote)
|
||||
mlib.commands = ['mlib']
|
||||
|
||||
|
||||
def mlig(phenny, input):
|
||||
""".mlig - My life is ginger."""
|
||||
try:
|
||||
req = web.get("http://www.mylifeisginger.org/random")
|
||||
except:
|
||||
raise GrumbleError("Busy eating your soul. Be back soon.")
|
||||
|
||||
doc = lxml.html.fromstring(req)
|
||||
quote = doc.find_class('oldlink')[0].text_content()
|
||||
phenny.say(quote)
|
||||
mlig.commands = ['mlig']
|
||||
|
||||
|
||||
def mlihp(phenny, input):
|
||||
""".mlihp - My life is Harry Potter."""
|
||||
try:
|
||||
req = web.get("http://www.mylifeishp.com/random")
|
||||
except:
|
||||
raise GrumbleError("This service is not available to Muggles.")
|
||||
|
||||
doc = lxml.html.fromstring(req)
|
||||
quote = doc.find_class('oldlink')[0].text_content()
|
||||
phenny.say(quote)
|
||||
mlihp.commands = ['mlihp']
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(__doc__.strip())
|
||||
|
|
|
@ -19,15 +19,3 @@ class TestMylife(unittest.TestCase):
|
|||
def test_mlia(self):
|
||||
mylife.mlia(self.phenny, None)
|
||||
assert self.phenny.say.called is True
|
||||
|
||||
def test_mlib(self):
|
||||
mylife.mlib(self.phenny, None)
|
||||
assert self.phenny.say.called is True
|
||||
|
||||
def test_mlig(self):
|
||||
mylife.mlib(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
|
||||
|
|
Loading…
Reference in New Issue