more my life methods

master
mutantmonkey 2011-09-02 01:16:19 -04:00
parent 54f0095413
commit 77df66a31b
1 changed files with 38 additions and 13 deletions

View File

@ -52,6 +52,44 @@ def mliarab(phenny, input):
phenny.say(quote) phenny.say(quote)
mliarab.commands = ['mliarab'] mliarab.commands = ['mliarab']
def mlib(phenny, input):
""".mlib - My life is bro."""
try:
req = urlopen("http://mylifeisbro.com/random")
except HTTPError:
phenny.say("MLIB is out getting a case of Natty. It's chill.")
return
doc = lxml.html.parse(req)
quote = doc.getroot().find_class('storycontent')[0][0].text_content()
phenny.say(quote)
mlib.commands = ['mlib']
def mlid(phenny, input):
""".mlib - My life is Desi."""
try:
req = urlopen("http://www.mylifeisdesi.com/random")
except HTTPError:
phenny.say("MLID is busy at the hookah lounge, be back soon.")
return
doc = lxml.html.parse(req)
quote = doc.getroot().find_class('oldlink')[0].text_content()
phenny.say(quote)
mlid.commands = ['mlid']
def mlig(phenny, input):
""".mlig - My life is ginger."""
try:
req = urlopen("http://www.mylifeisginger.org/random")
except HTTPError:
phenny.say("Busy eating your soul. Be back soon.")
return
doc = lxml.html.parse(req)
quote = doc.getroot().find_class('oldlink')[0].text_content()
phenny.say(quote)
mlig.commands = ['mlig']
def mlih(phenny, input): def mlih(phenny, input):
""".mlih - My life is ho.""" """.mlih - My life is ho."""
@ -66,19 +104,6 @@ def mlih(phenny, input):
phenny.say(quote) phenny.say(quote)
mlih.commands = ['mlih'] mlih.commands = ['mlih']
def mlib(phenny, input):
""".mlib"""
try:
req = urlopen("http://mylifeisbro.com/random")
except HTTPError:
phenny.say("MLIB is out getting a case of Natty. It's chill.")
return
doc = lxml.html.parse(req)
quote = doc.getroot().find_class('storycontent')[0][0].text_content()
phenny.say(quote)
mlib.commands = ['mlib']
if __name__ == '__main__': if __name__ == '__main__':
print __doc__.strip() print __doc__.strip()